https://github.com/refcell/restful-rust-api
Restful API built with Rust.
https://github.com/refcell/restful-rust-api
Last synced: 8 months ago
JSON representation
Restful API built with Rust.
- Host: GitHub
- URL: https://github.com/refcell/restful-rust-api
- Owner: refcell
- License: mit
- Created: 2021-05-12T21:24:45.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-13T23:25:41.000Z (about 5 years ago)
- Last Synced: 2025-07-20T06:58:23.590Z (11 months ago)
- Language: Rust
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# restful-rust-api
Restful API built with Rust from [pretzelhammer](https://github.com/pretzelhammer) rust blog at [restful-api-in-sync-and-async-rust](https://github.com/pretzelhammer/rust-blog/blob/master/posts/restful-api-in-sync-and-async-rust.md)
## Migrations
Prerequisite: install diesel cli with `cargo install diesel_cli --no-default-features --features "postgres sqlite mysql"`
Run diesel migrations with `diesel migration run`
NOTE: You must have a database running at the connection string provided in the `.env` variable `DATABASE_URL`