Skip to content

🐤 simple and clean pubg player stats and matches tracker

Notifications You must be signed in to change notification settings

dominickolbe/pubg

Repository files navigation

GitHub package.json version GitHub release (latest by date) GitHub Workflow Status

🐤 🐣 🐥

pubg.lol

simple and clean pubg player stats and matches tracker

Preview

Preview

see live version here

The current production build is served by vercel.com

https://pubg.domnc.app

the server is running on AWS

https://api.pubg.lol

Getting Started

Prerequisites

I build this project with the following setup:

  • macOS Monterey v12.0 Beta
  • node v16.7.0
  • yarn v1.22.11
  • npm v7.20.3
  • Docker version 20.10.8, build 3967b7d

Development

  1. create your .env file based on the .env.example

  2. install all necessary dependencies

yarn install
  1. start frontend
yarn frontend:start
  1. start server
yarn server:start:dev

Production

  1. create your .env file based on the .env.example

  2. build docker application

docker-compose --env-file packages/pubg-server/.env build
  1. start docker application
docker-compose --env-file packages/pubg-server/.env up
  1. stop docker application
docker-compose --env-file packages/pubg-server/.env down

Commands

import player by name

yarn workspace pubg-server ts-node --transpile-only ./src/tasks/importplayer.ts *PLAYER_NAME*

run update players task

NODE_ENV=production yarn workspace pubg-server ts-node --transpile-only ./src/tasks/run-update-players.ts
*/5 * * * * cd ~/apps/pubg/ && bash scripts/run-update-players.sh >/dev/null 2>&1

LICENSE

Copyright © 2021 Dominic Kolbe 🇩🇪