Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

fl0zone/template-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust + Axum + Serde Starter Pack

Backend engineering, supercharged.

Overview

Use this repository to get up and running on FL0 with the following stack:

Language Rust
Router Axum
Serialization Serde

Getting Started

We recommend using the provided Docker Compose configuration for local development. Our Docker configuration includes:

  1. Automatically create app server easily
  2. Production-ready minified image

However, you can still use this repo without Docker! See the instructions below.

Using Docker

  1. docker compose up (initial build can take a couple of mins)
  2. That's it! Visit http://localhost:8080 to see your app running

Without Docker

If you don't want to use Docker, run your rust app as per usual

  1. cargo run
  2. Visit http://localhost:3000 to see your app running

Note: you can optionally set the PORT env var to see your app running on a port other than the default 3000.

Deploying to FL0

Checkout our Getting Started Guide in the FL0 documentation!

Questions

If you have any questions about FL0 or this template codebase please head on over to our Discord channel.

Issues

Any issues or feature requests can be raised on the Issues page of this repo.

License

This template repository is MIT licensed.