/MarketAPIServer

The MarketAPI server is the backend of Rat Scanner, providing it with data from tarkov.dev

Primary LanguageRust

Build Status dependency status Lines Of Code

Market API Server

Setup

Create .env file:

DATABASE_URL=sqlite://./db.sqlite
AUTH_KEY=<MY_SECURE_KEY>
ENVIRONMENT=<Production|Development>

Install sqlx-cli:

cargo install sqlx-cli --no-default-features --features sqlite

Create database and run migrations:

sqlx database create
sqlx migrate run

Build

cargo build
# or
cargo build --release

Run

cargo run
# or
cargo run --release