- Messaging
- Friend system
- Realtime message streaming
- Super fast and low resource usage
- Rust 1.49+
- PostgreSQL 13+
cargo build --release
Add PostgreSQL bin
directory to environment variable PATH
, and lib
directory to environment variable LIB
, and then install diesel-cli
:
cargo install diesel_cli --no-default-features --features postgres
After installation, run:
diesel migration run
Configure database connection url via environment variable first:
Bash:
export DATABASE_URL=postgres://username:password@address/database
CMD:
set DATABASE_URL=postgres://username:password@address/database
PowerShell:
$env:DATABASE_URL="postgres://username:password@address/database"
Add PostgreSQL bin
directory to environment variable PATH
, and lib
directory to environment variable LIB
, and then you're ready to go.
HTTP POST
JSON { username: string, password: string }
HTTP POST
JSON { username: string, password: string, confirmPassword: string, email: string }
HTTP POST
HTTP POST
JSON { originalPassword: string, newPassword: string, confirmPassword }
HTTP POST
JSON { username: string, email: string, phone: string, location: string, age: number, gender: number, avatar: string }
HTTP GET
HTTP GET
HTTP GET
HTTP GET
HTTP POST
HTTP DELETE
HTTP GET
HTTP GET
HTTP POST
JSON { toUser: number, messageType: number, message: string, quoteId: number }
HTTP POST
WebSocket
JSON { status: boolean, code: number, data: object?, message: string? }