Skip to content

victorhqc/julie-vic-wedding-backend

Repository files navigation

julie-vic-wedding-backend

Julie & Vic Wedding Backend

Description

This project is built in separate pieces:

  • Core: Contains mainly DB reusable code.
  • Api: Web API Specific code.

Architecture

Data flow

Data flow

DB Entities

DB Entities

Run in development mode

You can also run this project in the root but you'll need several terminals open for that.

  1. Start the DB

    make postgres
  2. Run migrations (You'll need to change location to julie-vic-wedding-core)

  3. Run api

    cargo watch -x 'run --bin=julie-vic-wedding-api'

    Or the CLI

    cargo watch -x 'run --bin=julie-vic-wedding-cli'

Build production bundle

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

Setup Service

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

References

About

Jule & Vic Wedding Backend for RSVP

Resources

License

Stars

Watchers

Forks

Packages

No packages published