Clone this repo, rename .env.example
to .env and add your envs
npm install
Run in dev mode
npm run dev
Run server
npm run start
Just run
npm run build
Edit docs/v1.yaml
and run
npm run openapiv1
to generate the files needed for api specification
HOST=server host
PORT=port to start express server
API_KEY=api bearer token
Build the image
docker build . -t express-boilerplate
Run docker image
docker run --env API_KEY=token --env HOST=127.0.0.1 --env PORT=80 -p 80:80 express-boilerplate:latest