No description
| src | ||
| toasty | ||
| .gitignore | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| example.env | ||
| README.md | ||
| Toasty.toml | ||
Navak Backend
Backend of Navak Chat Platform.
Clone the repository
To use the backend, you need to have the Protocol Buffer file. Clone both repositories in the same directory :
git clone https://git.nexlight.be/Navak/navak-backend
git clone https://git.nexlight.be/Navak/navak-proto
Configure the environment
You can copy the example.env to .env and edit it:
| Variable | Example value |
|---|---|
DATABASE_CONNECTION_STRING |
postgresql://user:pass@domain:5432/navak_dev |
SMTP_RELAY |
smtp-example.navak.dev |
SMTP_USERNAME |
user |
SMTP_PASSWORD |
pass |
SMTP_SENDER_EMAIL |
example@navak.dev |
NAVAK_HOST |
0.0.0.0 |
NAVAK_PORT |
3000 |
NAVAK_PUBLIC_URL |
http://localhost:3000 |
Run
Ensure the environment is correct and the database is reachable, then:
cargo run
Generate DB migrations
This project is entities-first: you update the entities, then generate SQL to update the database.
To generate a migration
cargo run --bin migrations_cli -- migration generate