https://github.com/jontze/rust-rest-microservice-template
Rust, REST, actix-web and sqlx
https://github.com/jontze/rust-rest-microservice-template
Last synced: 3 months ago
JSON representation
Rust, REST, actix-web and sqlx
- Host: GitHub
- URL: https://github.com/jontze/rust-rest-microservice-template
- Owner: jontze
- Created: 2021-10-04T23:06:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-23T06:41:16.000Z (8 months ago)
- Last Synced: 2025-03-06T15:15:48.570Z (3 months ago)
- Language: Rust
- Size: 570 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](./migration/README.md))
5. Optional 2: Update the entities ([see here](./entity/README.md))
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](http://localhost:8000)