Skip to content

vinodnextcoder/nodejs-typescript-express-typeorm-mysql-boilerplate

Repository files navigation

Boilerplate code to get started with building RESTful API Services (Nodejs, Express, TypeORM Mysql)

cd existing_repo
git remote add origin 
git branch -M main
git push -uf origin main

Development

npm run dev

Production

pm2 start ecosystem.config.js --env production

Running tests

npm test

Linting

npm run lint

Building a container

docker build -t test/rest-api-typescript .

Run docker image

docker run -p 8080:3000 -d rahulse97/rest-api-typescript

Print app output

docker logs <container id>

Enter the container

docker exec -it <container id> /bin/bash