install dependencies:
npm iThis project uses Typescript.
config and secrets can be stored in a .env file locally for testing:
touch .envadd the following to specify port for the config:
PORT=4369
Compile with typescript:
tscor to run in watch mode, open a separate terminal and run:
npm run devOr with your global ts compiler:
tsc -wrun:
npm startThis will run nodemon to watch for changes in the compiled assets under /dist
This project has a /healthcheck endpoing that you can hit to test your environment. From Postman/Insomnia, or in the browser:
GET localhost:4369/healthcheck
You should see output in the console, and in the logs/<logfile> via:
tail -f logs/eaglelizard-api.log