Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ethereumdegen/rust-rocket-webapp-example
rust-rocket-webapp-example
https://github.com/ethereumdegen/rust-rocket-webapp-example
Last synced: 15 days ago
JSON representation
rust-rocket-webapp-example
- Host: GitHub
- URL: https://github.com/ethereumdegen/rust-rocket-webapp-example
- Owner: ethereumdegen
- Created: 2023-09-27T02:35:04.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-27T02:48:02.000Z (about 1 year ago)
- Last Synced: 2024-10-11T06:24:52.578Z (about 1 month ago)
- Language: Rust
- Size: 41 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Rust Rocket Webapp Template
This is a relatively simple web api template in rust that includes:
1) Model-Controller api backend using Rocket
2) Postgres database with Supabase(remote) or local DB supportSo this is a comprehensive framework with everything you need to get started building a JSON-based api that reads and writes to a database through an HTTP server with custom logic.
Basically ruby-on-rails in rust .
## HOW TO TEST (without postman!)
```
cargo build//need to set up postgres db and ENV vars for this step...
cargo run --bin migrate//boot the server and connect to the DB
cargo run// in another terminal -- lets you do POST requests
cargo run --bin test
```