Simple Node.JS Project. It include tests, generated documentation using apiDoc (https://apidocjs.com/), Docker file and Docker Compose.
RECOMENDATION: Use Docker to run both, API and Redis server, check Docker section.
- I added Babel to use
import
and avoid to add-experimental-modules
flag. - Send the request to the API using the header
authorization
.
Open the API documentation Index file.
./apidoc/index.html
npm install
npm start
Build the API image
docker image build -t node_api .
Then you can run docker-compose up
docker-compose up
- HTTP endpoints
- Services
npm run test-dev