A brand new online CoC (Call of Cthulhu) RPG backend, building with Rust + SeaORM.
This is just a project for learning......
- Install
sea-orm-cli
viacargo install sea-orm-cli
- Setting up environment variable:
echo "DATABASE_URL=\"sqlite://sqlite.db?mode=rwc\"\nRUST_LOG=coc_dan_backend=DEBUG" > .env
- Run migration via
just migrate
- Compile and run via
cargo run
- Install
vscode
- Install plugin
rest client
- Open
*.http
files and try!
- run
cargo test
Unit tests use in-memory dummy sqlite database.
- Regenerate entities files using
just migrate
- Regenerate Typescript binding files using
just ts