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.
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" }