Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 572 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 572 Bytes

Backend

Backend for crypto issues is written in rust, using actix for api.

To run locally first setup postgres database with

docker compose up -d

Then run migrations with:

diesel setup
diesel migration run

First seed the database with:

cargo run --bin init

This should take about 1-2 hours

Then run api and cron with:

cargo run --bin api

To generate store run:

sea generate entity -o libs/store/src/migrations --model-extra-derives Serialize,Deserialize --model-extra-attributes 'serde(rename_all = "camelCase")'