bootcamp-second-project / draw-stuff

draw with ur friends :)
1 stars 1 forks source link

controllers - sequelize #2

Closed japankid-code closed 3 years ago

japankid-code commented 3 years ago

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:

japankid-code commented 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

japankid-code commented 3 years ago

finished up with ef8f341b781bbb85975ac6e1bd5ba7fa99ef45af, adding on top of the original routes by @TinyVail