backend-part
In this project, I started implement simple game Tic Tac Toe
.
I try create multiplayer game on express.js, I also use redis (for store queue users and state games), modgodb (for store, another data) and Sockets for respond on many async request.
This project was created in a short time (as a test task), therefore, some solutions may be far from ideal.
Video for understand, what I mean when developed this project
I hope you will like it)
- install docker and run it in background.
- clone repository and
cd ./tic-tac-toe
- run
docker-compose up --build
and wait message in consoleConnected to MongoDB Successfully
Server is Done!
- run server (if it not run already)
- run
docker exec -it server npm run container:migrate
- for create users (if they not already created) - run
docker exec -it server npm run container:bot
- for start a bots - Please wait and see in console on change states game.