This repository has been archived on 2024-07-25. You can view files and clone it, but cannot push or open issues or pull requests.
ood_persistence/examples/web/README.md
2021-10-17 15:13:01 +03:00

832 B

Web example

Simple rest api example with hyper, bb8, postgres

Deps

For this example you need to install docker with docker-compose, nightly rust. Follow the instructions on the official sites.

Running

Move to the example directory

cd examples/web

Run configuration for docker-compose

docker-compose -f docker-compose.dev.yml up

Or run postgres server manually.

Then copy .env.example to .env and edit if you needed.

cp .env.example .env

Now you can run server

cargo run --features dev

Or if you have a cargo make

cargo make dev