A rust implementation of the RealWorld Conduit example app.
- Salvo, the simplest rust web framework
- Tokio asynchronous runtime
- Tokio postgres client
- Sea query builder
To run in develpment you need a container engine available, e.g. docker or podman
Using the compose file you can run:
APP_ENV=development docker-compose up -d
The unit tests are located in the test modules through the codebase.
To run the unit tests use:
cargo test --lib
The e2e tests uses the same config as the development env, although the persisted data (database volumes) are isolated between environments.
Before run the tests start the app with:
APP_ENV=test docker-compose up -d
To run the e2e tests with the application started, run:
cargo test --tests