Julie & Vic Wedding Backend
This project is built in separate pieces:
- Core: Contains mainly DB reusable code.
- Api: Web API Specific code.
Data flow
DB Entities
You can also run this project in the root but you'll need several terminals open for that.
-
Start the DB
make postgres
-
Run migrations (You'll need to change location to
julie-vic-wedding-core
) -
Run api
cargo watch -x 'run --bin=julie-vic-wedding-api'
Or the CLI
cargo watch -x 'run --bin=julie-vic-wedding-cli'
To build a release target from Windows or Mac OS, is required to have Docker to cross-compile. This because it relies on Open SSL and building it outside Linux hasn't been trivial. Many posts exists about it that describe it better.
A solution for it is use rust-musl-builder to build it.
make version=0.1.0 build
For documentation purposes, here's how to setup the service manually.
Make sure the binary is in the server using target/x86_64-unknown-linux-musl/release/julie-vic-wedding-api
.
Follow instructions from here