Giter Club home page Giter Club logo

astrox's Introduction

image

Astrox

A rust driven axum served platform for linking high performance statically generated astro sites to a rust API for extremely light weight and high performance web applications on constrained systems. The base implementation of this project uses around 2 MB of memory

Features

  • Rust Axum API
  • Astro Static Site Generation
  • Tailwind CSS Styling
  • Formatters (Cargo fmt + Prettier)
  • Linting (Clippy + EsLint)
  • Interactive Islands (React)
  • Absolute Imports for Astro + TSX @/*
  • Response Caching

Development

Prerequisites

Dev Mode

  • pnpm dev:frontend - Start the frontend astro server on port 4321
  • pnpm dev:backend - Start the backend axum server on port 3000

Production Build

  • pnpm build - Build the frontend astro site, and the backend axum server

Run Production

  • pnpm start - Start the production server on port 3000 serving the astro site and running the axum server for routes under /api/

Linting & Formatting

  • pnpm lint - Lint the rust code, web code linting coming soon
  • pnpm format - Format the rust and web code

Quick Launch

  • pnpm launch - Build and start the production server

Environment Variables

  • PUBLIC_HOST - The public host of the server, this will throw a warning if not set but should still function on the fallback localhost:3000

astrox's People

Contributors

versecafe avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.