Skip to content

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

faf85e1 · Aug 8, 2023

History

5 Commits
Aug 4, 2023
Aug 4, 2023
Aug 4, 2023
Aug 4, 2023
Aug 4, 2023
Aug 4, 2023
Aug 4, 2023
Aug 4, 2023
Aug 4, 2023
Aug 4, 2023
Aug 4, 2023
Aug 4, 2023
Aug 4, 2023
Aug 4, 2023
Aug 4, 2023
Aug 4, 2023
Aug 4, 2023

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