Skip to content

Latest commit

 

History

History
46 lines (40 loc) · 1.06 KB

README.md

File metadata and controls

46 lines (40 loc) · 1.06 KB

This is a trading platform of Pokemon Card.

Dev setup

  • need to install postgres client
  • Prepare .env file:
HOST=0.0.0.0
PORT=8080
DATABASE_URL=postgres://postgres:postgrespw@localhost:49153/pokemon
RUST_LOG=sqlx=error,info
RUST_BACKTRACE=0
  • Setup Postgres database
sqlx database create
sqlx migrate run
  • If any Postgres query changed, please execute the following command before commit
cargo sqlx prepare

Deploy

Centralized Logging

  • loki-docker-driver + loki + Grafana
  • execute command
docker plugin install grafana/loki-docker-driver:latest --alias loki --grant-all-permissions
docker compose -f docker-compose-log.yml up

Service

docker compose up