Skip to content

netgroup/eCLAT-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eCLAT-backend

How to install

Using Git (recommended)

  1. Clone the project from github. Change "myproject" to your project name.
https://github.com/netgroup/eCLAT-backend.git

Using manual download ZIP

  1. Download repository
  2. Uncompress to your desired directory

Install npm dependencies after installing (Git or manual download)

cd myproject
npm install

Setting up environments

  1. Create a file named .env on root directory of project.
  2. The file .env is already ignored, so you never commit your credentials.
  3. Add the values to the file of your environment.

Project structure

.
├── 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

How to run

Running API server locally

npm run start

Creating new models

If you need to add more models to the project just create a new file in /models/ and use them in the controllers.

Creating new routes

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.

Creating new controllers

If you need to add more controllers to the project just create a new file in /controllers/ and use them in the routes.

Bugs or improvements

Every project needs improvements, Feel free to report any bugs or improvements. Pull requests are always welcome.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published