A template api using Node, Express, PSQL, Typescript and Jest for testing.
MIT License
A basic API you can run locally with minimal setup. Includes Unit tests and E2E tests to ensure the DB can be hit.
The Postgres CLI will need to be used and docker needs to be running on your machine.
brew install postgresql
npm i
cp ./environment/local_example.env .env
docker-compose up -d
npm run dev
or
./scripts/run-local.sh
or if you want to run it all in docker
./scripts/run-local-docker.sh
npm run test:unit
Ensure docker is running
npm run test:e2e