- Copy the
.env.example
file to.env
:cp .env.example .env
- Open the
.env
file and update the values as needed. - Execute the following command to create and run the PostgreSQL database container:
docker-compose -f docker_compose_postgres.yml up
- Run the command below to install project dependencies:
npm install
- Run the command below to seed the database:
npm run seed
- Run the command below to start the Node.js backend:
npm run start
- Get all users: http://localhost:3000/users
- Get user by id: http://localhost:3000/users/1
- Get users with page-based pagination: http://localhost:3000/users/page?page=1&size=5
- Get users with offset-based pagination: http://localhost:3000/users/offset?offset=3&size=5
- Get users with cursor-based pagination: http://localhost:3000/users/cursor?cursor=3&size=5