/pocket-tanks

Pocket Tanks is a web version of popular game. (https://en.wikipedia.org/wiki/Pocket_Tanks)

Primary LanguageTypeScript

Game Pocket Tanks

Design

Pre-Requisites

Make sure you have docker and docker-compose installed.

Create environment files at stage/env/dev.env and deploy_files/env/prod.env . You can use stage/dev.env.example file as an example. For Google OAuth and Yandex OAuth to work you need to set this env variables with values given after registering app in Google and Yandex:

  • GOOGLE_CLIENT_ID
  • GOOGLE_CLIENT_SECRET
  • YANDEX_CLIENT_ID
  • YANDEX_CLIENT_SECRET

Installation

npm install
npm run docker:stage

The game will be launched at https://localhost:5000

Testing + Linting

npm run validate

Testing

npm run test

Linting

npm run lint:all

Developers