This is a very basic template for a Node based HTTP API microservice. It includes:
- Web server
- JWT based authentication
- Validation
- Logging
- Copy
.env.exampleto.env - Edit
.envto modify configuration - reviewsrc/config/config.jsfor available configuration options - Run using
node index.js
To do authenticated requests you can boot the service with LOG_LEVEL=debug. This will log a valid access token in the boot process.
Authentication is done using a authorization bearer header, example: Authorization: Bearer $ACCESSTOKEN