{"repo":"pinceladasdaweb/docker-fastify-restful-api","free":true,"listed":false,"github":"https://github.com/pinceladasdaweb/docker-fastify-restful-api","clone":"git clone https://github.com/pinceladasdaweb/docker-fastify-restful-api.git","description":"Node.js RESTful API boilerplate using Traefik, Docker, Docker Compose, Fastify, JWT and Mongodb","language":"JavaScript","stars":89,"topics":["fastify","sonarqube","docker","traefik","sonarqube-dashboard","mongodb","jwt"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"Docker Fastify RESTful API Node.js RESTful API boilerplate using Traefik, Docker, Docker Compose, Fastify, JWT and Mongodb. Requirements 1. Node.js = 20 2. Docker 3. Docker compose Project structure The dependency rule: modules/ may import from shared/ , never the other way around, and modules do not import from each other. Getting started Install packages using docker: Windows users should switch the PWD variable to your current directory. Alternatively, you can run npm install as follows: Or if you have node installed in your system, install using npm: Configuration 1. Rename the .env.example file to .env and fill variables. The SENTRY DSN variable is not obligatory. 2. Edit your hosts file with: 127.0.0.1 fastify.localhost Run In the root of project, run: API Request Endpoint HTTP Method Description ---------------------------------- :---------------------: :---------------------: /health GET Healthcheck /docs GET Swagger UI /api/v1 GET Welcome message /api/v1/users/register POST Adds a new user /api/v1/users/auth POST Authenticate user /api/v1/movies GET List all movies /api/v1/movies/:id GET Get movie /api/v1/movies POST Adds a new movie /api/v1/movies/:id PATCH Update a movie /api/v1/movies/:id DELETE Delete a movie All /api/v1/movies routes require a Authorization: Bearer header (get a token from /api/v1/users/auth ). Invalid ids return 400 , duplicated emails return 409 , and login/register are rate limited (5 requests per minute). Tests The test suite uses the built-","default_branch":null,"files":null,"tree":[],"storefront":"/r/pinceladasdaweb","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pinceladasdaweb/docker-fastify-restful-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}