jmorales8 / Bunnys-space

0 stars 0 forks source link

80-BUNSPACE2024-Add-Regi-Login-Routes-API #81

Closed jmorales8 closed 2 weeks ago

jmorales8 commented 1 month ago

Add register and login routes to the api

HOW TO TEST:

using postman: REGISTER: TYPE: POST REQUEST, URL: http://localhost:3001/auth/register BODY: RAW: { "username": "newuser12345", "password": "password123" } would create a new user in the db for this

LOGIN: TYPE: POST REQUEST, URL: http://localhost:3001/auth/login BODY: RAW: { "username": "newuser12345", "password": "password123" } would return a JWT that would be used in the ui to make sure the user can use the router that require a jwt to proceed so that we know they are allowed to see that page

Extra Resources

YOU ALSO NEED TO ADD AN .env file at the same level as your src file and package.json using stuff inside of the .env.example Closes #80

GrpFruit commented 2 weeks ago

Do a rebase and push to master

jmorales8 commented 2 weeks ago

Rebase and push up

hold on, im about to push up these changes

GrpFruit commented 2 weeks ago

Rebase and push up

hold on, im about to push up these changes

Have you seen Brazilian funk Miku?!? What you think of it?? I personally like itπŸ”₯πŸ”₯πŸ”₯

jmorales8 commented 2 weeks ago

Rebase and push up

hold on, im about to push up these changes

Have you seen Brazilian funk Miku?!? What you think of it?? I personally like itπŸ”₯πŸ”₯πŸ”₯

yes i want to smash