This repo contains all the code required for the Postman API 2.0 Workshop 😃
M - MongoDB E - Express R - ReactJS N - NodeJS
-
backend
- This folder contains all the backend related code while includes Server code, APIs and middlewares -
workshop-frontend
- This frontend contains all the frontend related code.
The backend and frontend of this repository is hosted separately and you can find it at the below links -
-
Frontend Hosted URL - https://workshop-frontend.netlify.app/
-
Backend Hosted URL - https://api-2-0-5hx9.onrender.com/
Please follow the below steps in order to see your details at https://workshop-frontend.netlify.app/
-
Visit postman web at https://web.postman.co/
-
Register Yourself 🖥️
Please follow the below steps to register yourself -
- Select the Request type sas
POST
- Put the URL as
https://api-2-0-5hx9.onrender.com/api/register
- Select Body -> JSON(from type dropdown) and fill teh below details in there
{ "name": "", "email": "", "password": "", "confirm_password": "" }
- Click on the
send
button - You should get a status of 200 showing that your request is done correctly
- Select the Request type sas
please see the below screenshot to take the reference of the input and output data
-
Login Yourself 🔐
Please follow the below steps to register yourself -
- Select the Request type sas
POST
- Put the URL as
https://api-2-0-5hx9.onrender.com/api/login
- Select Body -> JSON(from type dropdown) and fill teh below details in there
{ "email": "", "password": "" }
- Click on the
send
button - You should get a status of 200 showing that your request is done correctly
- Select the Request type sas
please see the below screenshot to take the reference of the input and output data
-
Add your details to the Database 💾
Please follow the below steps to register yourself -
- Select the Request type sas
POST
- Put the URL as
https://api-2-0-5hx9.onrender.com/user/add-user
- Select Body -> JSON(from type dropdown) and fill teh below details in there
{ "name": "", "description": "", "anything_for_world": "" }
- Click on the
send
button - You should get a status of 200 showing that your request is done correctly
- Select the Request type sas
please see the below screenshot to take the reference of the input and output data
- Visit the webiste and see your details added in there 😄
Please feel free to come up with a issue/PR if you think this repository needs any kind of improvement!