A small web application that displays history and statistics of your ranked games in Overwatch.
Install the dependencies.
npm installStart development servers parallelly for both the client and server:
npm run dev- Sign in or create a new account.
- Quickly add and edit games.
- Display games history for each season.
- Display skill rating progression chart.
Define the API_URL environment variable (during development, define NUXT_HOST and NUXT_PORT as well).
export API_URL=http://host:portBuild the client into the dist directory.
npm run build -w @overstats/clientYou can then start a web server in the dist directory and start using the client.
The following scripts are available in the client workspace:
dev: start a development serverlint: check for code quality and coding stylelint:fix: fix coding styles issues
GET /login: log into an account to get an access tokenGET /token: get a new token by providing an existing valid token
GET /seasons: list all seasons names
POST /users: create a new userGET /users/{name}: read an existing userDELETE /users/{name}: delete an existing user
GET /users/{name}/games: list all games from the userPOST /users/{name}/game: create a new gameGET /users/{name}/games/{id}: read an existing gamePATCH /users/{name}/games/{id}: update an existing gameDELETE /users/{name}/games/{id}: delete an existing game
GET /users/{name}/placements: list all placements from the userPOST /users/{name}/placements: create a new placementGET /users/{name}/placements/{id}: read an existing placementPATCH /users/{name}/placements/{id}: update an existing placementDELETE /users/{name}/placements/{id}: delete an existing placement
Define the following environment variables appropriately.
export PORT=3000
export MONGODB_URI=mongodb://host/db
export JWT_SECRET=secret
export JWT_EXPIRE_AFTER=3600Build the server.
npm run build -w @overstats/serverStart the server.
npm start -w @overstats/serverThe following scripts are available in the server workspace:
dev: start a development serverlint: check for code quality and coding stylelint:fix: fix coding styles issuestest: run the teststest:cov: run tests and report coverage