Quick and simple nodejs starter application template for your next project
I needed a very simple structure for small nodejs applications, so i made one for my own use without too many plugins or over complication on folder structure.
- Express - Server framework.
- Dotenv - To manage environment variables across environments.
- Debug - Debug without console.log
- Jest - Testing framework.
- Nodemon - Monitor for any changes in your node.js application and automatically restart it.
- eslint - Find and fix problems in your JavaScript code
- husky - Manage pre-commit/pre-post git hooks
- For Development
docker-compose -f docker-compose-dev.yml up --build
- For Production
docker-compose up --build
- Install dependencies
yarn install
- Copy .env.example into .env and edit its content to fit your case.
- Run in dev mode
yarn dev
- Install dependencies
yarn install --production
- Copy .env.example into .env and edit its content to fit your case.
- Start it using your fav tool ( recommend pm2 )
yarn start
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Eslam Salem - @net_code - [email protected]