Skip to content

adks3489/pokemon_trading

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages