smileydts / death-or-glory

0 stars 0 forks source link

Integrate call to join the game #16

Open smileydts opened 7 months ago

smileydts commented 7 months ago

Player 0 goes to the page, enters name, clicks join, gets back player_id which his browser stores as a cookie.

Use Javascript -- I don't think AJAX is necessary, but maybe it is.

smileydts commented 7 months ago

I can't remember if I shared this Postman collection with you or not, but in case not I'm attaching it here. dog.postman_collection.json

To run:

  1. docker-compose up
  2. Go to postman.com
  3. Sign up for free account (if not already signed up)
  4. Open a workspace
  5. Import the attached collection (click the import button)
  6. Have fun running the API calls. The URL you can easily see -- the body can be seen by clicking on "body"
smileydts commented 7 months ago

Things to do.

Note: you may also be able to use incognito mode as a substitute for postman in this case