This project is a an example of Rocket web framework for a Web API.
The database engine used by the project is SQLite.
First, follow Diesel instructions to install the Diesel CLI.
To create and migrate the database:
- Initialize database with
diesel setup
- Migrate database with
diesel migration run
To start the Rocket server:
- Install dependencies and build executables with
cargo build
- Start Rocket server with
target/debug/rocket_webapi
Now you can visit http://localhost:3000/api from your browser.