- Clone the project from github. Change "myproject" to your project name.
https://github.com/netgroup/eCLAT-backend.git- Download repository
- Uncompress to your desired directory
cd myproject
npm install- Create a file named .envon root directory of project.
- The file .envis already ignored, so you never commit your credentials.
- Add the values to the file of your environment.
.
├── app.js
├── package.json
├── bin
│   └── www
├── controllers
│   ├── AuthController.js
|   ├── UserController.js
│   └── PackageController.js
├── models
│   ├── PackageModel.js
│   ├── ReleaseModel.js
│   └── UserModel.js
├── routes
│   ├── api.js
│   ├── auth.js
│   ├── package.js
│   └── user.js
├── middlewares
│   └──  jwt.js
└── helpers
    └── apiResponse.js
npm run startIf you need to add more models to the project just create a new file in /models/ and use them in the controllers.
If you need to add more routes to the project just create a new file in /routes/ and add it in /routes/api.js it will be loaded dynamically.
If you need to add more controllers to the project just create a new file in /controllers/ and use them in the routes.
Every project needs improvements, Feel free to report any bugs or improvements. Pull requests are always welcome.