No description
Find a file
2026-09-06 00:11:19 +02:00
src [feat] display server version on root API page 2026-09-06 00:11:19 +02:00
toasty - Migrated to Toasty ORM. 2026-08-23 19:55:02 +02:00
.gitignore - Migrated to Toasty ORM. 2026-08-23 19:55:02 +02:00
build.rs adding protobuf integration 2026-03-03 15:50:29 +01:00
Cargo.lock - Migrated to Toasty ORM. 2026-08-23 19:55:02 +02:00
Cargo.toml clippy-suggested fixes 2026-09-02 00:19:16 +02:00
example.env - Migrated to Toasty ORM. 2026-08-23 19:55:02 +02:00
README.md - Migrated to Toasty ORM. 2026-08-23 19:55:02 +02:00
Toasty.toml - Migrated to Toasty ORM. 2026-08-23 19:55:02 +02:00

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