This project is an Online Battleship game site, which is built with ReactJS, Flask and Websocket.
Main functions:
- Play Battle Ship online with friends.
- Online chatting.
- Friend list management.
- python3
- pip3
- docker
- docker-compose
- In the first time running or when you want to re-create the database, please set
RECREATE_DB
totrue
indocker-compose.yml
. After running the docker-compose, change it to the default value (false).
sudo docker-compose up
- Backend and frontend will be up at port 80.
sudo docker-compose -f docker-compose-prod.yml build --nocache
sudo docker-compose -f docker-compose-prod.yml up
See OnlineGames.postman_collection.json
for Postman
API examples.
-
Sample project get from this article, github link
-
Game assets from: https://opengameart.org/content/sea-warfare-set-ships-and-more