install dependencies:
npm i
This project uses Typescript.
config and secrets can be stored in a .env
file locally for testing:
touch .env
add the following to specify port for the config:
PORT=4369
Compile with typescript:
tsc
or to run in watch mode, open a separate terminal and run:
npm run dev
Or with your global ts compiler:
tsc -w
run:
npm start
This 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