An industrial level NodeJS template that uses tools like TypeScript, Prettier, ESLint, Husky, PM2 and many more. The template also incorporates the MVC architecture.
In-order to use docker
, switch to docker
branch
git clone https://github.com/IshaanOhri/Bulletproof-NodeJS-Template
git checkout pm2
npm install
- Create
dev.env
file and add environment variables according toenv.example
:
touch ./src/config/dev.env
- Start server:
npm run dev
- Build project
npm run-script build
- Install
pm2
as global package
sudo npm install -g pm2
- Change contents of
ecosystem.config.js
if required - Start server:
npm start
Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/NewFeature
) - Commit your Changes (
git commit -m 'Add some NewFeature'
) - Push to the Branch (
git push origin feature/NewFeature
) - Open a Pull Request
The project is distributed under the MIT License. See LICENSE for more information.