Closed japankid-code closed 3 years ago
a games row in the database represents a lobby basically.
many game lobbies can be running at one time.
user/account routes will have to pass in the session id as the user is created with req.session.id
. users are connected to the game and authenticated with their session id, this way refreshing the page will not leave the game lobby.
not sure where logic for creating a new game after one fills up will go
finished up with ef8f341b781bbb85975ac6e1bd5ba7fa99ef45af, adding on top of the original routes by @TinyVail
server set up with express, will need to include:
routes will be needed to send data to the database about the username and image selected.
home routes will simply bring up the homepage template, allowing a user to type their username and select an image to display.
API routes will need: