This is a very basic template for a Node based HTTP API microservice. It includes:
- Web server
- JWT based authentication
- Validation
- Logging
- Copy
.env.example
to.env
- Edit
.env
to modify configuration - reviewsrc/config/config.js
for 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