Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joshuatoth/node-express-jest-psql-typescript-template

A template api using Node, Express, PSQL, Typescript and Jest for testing.
https://github.com/joshuatoth/node-express-jest-psql-typescript-template

api docker express jest node psql template typescript

Last synced: about 4 hours ago
JSON representation

A template api using Node, Express, PSQL, Typescript and Jest for testing.

Awesome Lists containing this project

README

        

# Typescript, Nodejs, Express, Postgres server.
A basic API you can run locally with minimal setup.
Includes Unit tests and E2E tests to ensure the DB can be hit.

## Setup
The Postgres CLI will need to be used and docker needs to be running on your machine.

```
brew install postgresql
npm i
```

## running development
```
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`

## running tests (unit)
`npm run test:unit`

## running tests (e2e)
Ensure docker is running
`npm run test:e2e`