Main structure of node.js project. Folders / files:
- __tests__. Tests folder. See Jest Docs and Chai Docs
- app:
- config
- controllers
- middlewares
- models
- routes
- helpers
- app.js. Entry point.
- package.json.
- .env. Environment descriptor. See dotenv doc.
Extras:
- .eslintrc. Linter JS, static code analyzer. See EsLint Docs.
- .prettierignore. Code formatter. See Prettier Config and Prettier Ignore.
- .ecosystem.config.js. Process Manage at runtime. See PM2 Docs.
Follow the steps below:
- Fork the project from https://github.com/IT-Academy-BCN/nodeInitialDemo
- Clone your fork of the project from the Github Platform. Execute:
git clone https://github.com/your_username_here/nodeInitialDemo
- Open the project downloaded
Follow the steps below:
- Fork the project from https://github.com/IT-Academy-BCN/nodeInitialDemo
- Clone your fork of the project from the Github Platform. Execute:
git clone https://github.com/your_username_here/nodeInitialDemo
- Open the project downloaded
- Node Developers Guide
- .gitignore file configuration. See Official Docs.
- Git branches. See Official Docs