A starter project with Node.js, Fastify and PostgreSQL
.
├── README.md
├── src
│ ├── helpers
│ ├── modules
│ ├── routes
├── app.js
├── server.js
├── .env.example
├── .gitignore
└── db.sql
- Import file db.sql to your database
- Copy file .env.example to .env and change with your configuration
- Run node app.js
- GET /api/v1/users fetch data users
- GET /api/v1/users/:id fetch data user by id
- POST /api/v1/users create data user
- PATCH /api/v1/users/:id update data user by id
- DELETE /api/v1/users/:id delete data user by id