🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

Repository files navigation

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

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

Production Build

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

Run Production

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

Linting & Formatting

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

Quick Launch

  • bun 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

About

Axum driven Astro for data driven frontends on constrained systems.

Topics

Resources

Stars

12 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages