-
To run the application locally, you will need to create the table in Pg Admin. The script is located in the project's
sql
folder. -
Then just go to:
server
and run the following command:
> npm i
- Now run the project inside the
server
folder with the following command:
> npm run dev
- Open Postman. Now you can:
Method | HTTP verb | Endpoint |
---|---|---|
Create new User | POST | http://localhost:3000/api/users |
List All Users | GET | http://localhost:3000/api/users |
Find User by Id | GET | http://localhost:3000/api/users/{id} |
Update User by Id | UPDATE | http://localhost:3000/api/users/{id} |
Delete User by Id | DELETE | http://localhost:3000/api/users/{id} |