Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 660 Bytes

File metadata and controls

29 lines (19 loc) · 660 Bytes

Nexara API

Rust API for invite-only community platform.

Note that the project was not intended to be made public therefore has no documentation.

How to run

Before building and running the API you need to have a running postgres instance.

  1. Copy .env.example to .env and change the database url option
  2. Copy config.toml.example to config.toml and adjust it to your needs
  3. Download sqlx-cli then run command below in root directory:
sqlx migrate run
  1. Generate two key pairs for JWT signing/verifying
./scripts/generate_keys.sh
  1. Start the development server
cargo run