Random things in Typescript, Express, REST, GraphQL and PostgreSQL
# install nvm (node version manager)
brew install nvm
# install the latest LTS and make it the default
nvm install 10
nvm alias default 10
Follow the install instructions for docker
https://docs.docker.com/docker-for-mac/
https://docs.docker.com/docker-for-windows/
# start the docker container for postgres
docker-compose up -d
# install the command line tools for postgres
brew install postgresql
- Run
npm i
from the root directory in a terminal window. Perform this step before running, testing, or building
- Run
npm run dev
from the root directory in a terminal window
- Run
npm test
from the root directory in a terminal window
- Run
npm run build
from the root directory in a terminal window - Run
npm start
from the root directory in a terminal window