Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 884 Bytes

File metadata and controls

39 lines (28 loc) · 884 Bytes

Sector D17

Prepare environment

  1. Clone docker to directory docker
  2. Clone server-game to directory server-game
  3. Clone server-slave to directory server-slave
  4. Clone server-master to directory server-master

Setup

  1. Copy file containing environment variables

    cp .env.example .env
  2. Set your ip address as a value of the IP variable in .env file

    IP=192.0.2.1
  3. Run

    docker-compose up --build -d

Testing

  1. Create example server

    curl -X POST -d "name=test123" http://127.0.0.1:3001/games
  2. Get list of servers

    curl http://127.0.0.1:3001/games