Skip to content

Directory Structure

After creation, your project should look like this:

├── controllers
│   └── index.controller.js
├── helpers
│   └── methods.js
├── index.js
├── middlewares
│   ├── error.middleware.js
│   └── validators
│       ├── index.validations.js
│       └── wrapper.validator.js
├── package.json
├── package-lock.json
└── routes
    └── api.js

index.js is the JavaScript entry point.

You can delete or rename the other files.

You can, however, create more top-level directories as the system provide you with a full free hand.