CodeAndBeers / LGWS

Les Loups Garous de Wall Street

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Les loups-garous de Wall Street

Prerequisites

LGWS is a docker based application, you only need two things :

You can easily install docker-compose using pip !

$ sudo apt update && apt install python-pip
$ pip install docker-compose

Installation

Only two steps, yes ma'm:

$ git clone https://github.com/CodeAndBeers/LGWS.git && cd LGWS/
$ docker-compose up -d

Now the project is building, you can take a look when it's finished by typing :

$ docker-compose logs

Now take a look at :

http://localhost:8080

How it works

After running the command above you should have 3 containers :

  • A non-running data only container named "data-client".
  • A nginx container serving the client data
  • A nodejs server application which handle the game mechanics

Details :

  • Nginx logs are stored in ./nginx folder
  • ./nodejs/.npmrc file allows docker to execute npm command as root user

Usefull commands

List all running containers:

$ docker ps

Stop all running containers:

$ docker-compose stop

Remove all docker volumes:

$ docker-compose rm -v

Links :

About

Les Loups Garous de Wall Street


Languages

Language:TypeScript 40.5%Language:JavaScript 40.4%Language:HTML 12.8%Language:CSS 6.3%Language:Shell 0.1%