- Actix - Web server
- Juniper - GraphQL library
- Diesel - Database ORM with PostgreSQL
Folder name | Description |
---|---|
resolvers | GraphQL queries and mutations |
entities | GraphQL object definitions and database queries |
db | Autogenerated Diesel schema + db connection setup |
- Install diesel cli
cargo install diesel_cli --no-default-features --features postgres
- Setup database
docker-compose up -d
diesel setup
diesel migration run
- Start server
cargo run