Skip to content

This repository provides a template for building a Rust-based REST microservice. It includes a set of pre-configured components and best practices to help developers quickly set up a robust and scalable API server.

Notifications You must be signed in to change notification settings

drunest/Rust-REST-microservice-template

Repository files navigation

Rust REST Webserver Template

This template repo is used for the fast setup of a rust REST API.

The following technologies are used:

  • Rust
  • Axum
  • SeaOrm
  • Postgres

For a fast setup:

  1. Run cargo install sea-orm-cli
  2. Create your .env file based on the example
  3. Run docker-compose up -d
  4. Optional 1: Add new migrations (see here)
  5. Optional 2: Update the entities (see here)
  6. Start the REST API webserver with cargo run (remember to make the environment variables provided in your .env accessible)
  7. Open your browser and go to localhost:8000

About

This repository provides a template for building a Rust-based REST microservice. It includes a set of pre-configured components and best practices to help developers quickly set up a robust and scalable API server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •