Skip to content

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

Notifications You must be signed in to change notification settings

RatScanner/MarketAPIServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status dependency status Lines Of Code

Market API Server

Setup

Create .env file:

PORT=<PORT, e.g. 8081>
DATABASE_URL=postgresql://<DB_USER>:<DB_USER_PASSWORD>@localhost/<DB_NAME>
AUTH_KEY=<MY_SECURE_KEY>
ENVIRONMENT=<Production|Development>
# SERVICE=false <-- Disable fetch service, enabled by default

Install sqlx-cli:

cargo install sqlx-cli --no-default-features --features native-tls,postgres

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published