Skip to content

mohsensamiei/typescript-api-base

Repository files navigation

Typescript api base infrastructure

Preparing the development environment

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
export NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
nvm install
npm run dev

Build Source code and run

npm run lint
npm run build
npm start

Run application tests

npm run test

Build docker image

npm run prod