Skip to content

Latest commit

 

History

History
57 lines (52 loc) · 1.56 KB

File metadata and controls

57 lines (52 loc) · 1.56 KB

Documentation

Structure Default

all files and folders generated automatically

.
├── app
│   ├── controllers
│   │   └── ExampleController.js
│   ├── cores
│   │   ├── Controller.js
│   │   ├── Router.js
│   │   └── Server.js
│   ├── database
│   │   ├── config
│   │   │   └── config.js
│   │   ├── migrations
│   │   └── models
│   │       └── index.js
│   ├── helpers
│   │   ├── formatter.js
│   │   └── functions.js
│   ├── middlewares
│   │   └── log.js
│   ├── utilities
│   │   ├── axios.js
│   │   ├── database.js
│   │   └── env.js
│   └── views
│       ├── exceptions
│       │   └── 404.ejs
│       └── pages
│           └── welcome.ejs
├── index.js
├── package-lock.json
├── package.json
└── public

Routing

all routing rules on file ~/app/cores/Router.js at init() static method you can edit to customize your routes

static init() {
  return [
    this.get("/", (req, res, next) =>
      new ExampleController(req, res, next).index()
    ),
  ];
}

database

a database configuration is exist at ~/app/database/config/config.js you can read official documentaion of sequelize to see list of supported database