ubclaunchpad / food-doods

Dabbing out food waste and over-spending on groceries
MIT License
5 stars 4 forks source link

Feature/gateway #125

Closed aviquez96 closed 4 years ago

aviquez96 commented 4 years ago

Implemented with User microservice.

To test, go to the gateway folder inside the gateway microservice and do npm start (running currently on port 8080). For any specifics, the main file to look at is the gateway.config.yml file.

On another terminal, open npm start the User service (running on port 8000)

The User service has currently a .get('/user/:username) and a .post('/user') route.

To test the get route, run http://localhost:8080/user/:user (sample user is abcabc)

To test the post route, run http://localhost:8080/user on Postman with a similar structure to the one below.

{ "email": "a@gmail.com", "username": "a", "password": "a", "fullName": "Woa lmao" }