Requirements: Flask Redis Python
Instructions: Clone git repository
-
cd finomena [Enter Directory]
-
python app.py [Start the Flask Server]
-
redis-server [Start redis server]
-
Navigate to localhost:5000 to access home page
-
Server is running on port 0.0.0.0 that means users can access this website on a.b.c.d:5000 where a.b.c.d is the ip of the server
API:
-
/login Asks the user for a unique username and assigns it. List of usernames is maintained using db.
-
/game/create/ Automatically creates a new game for the user and returns the unique "gameID" to access the game
- /specify/gameID Allows user to specify the dimensions of the board of the game with ID : "gameID".
- /play/gameID Allows user to enter an existing game with unique ID : "gameID". If such a game does not exist , user is asked to create such a game.