1.1.9 • Published 9 months ago

node-folder-structure v1.1.9

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

Project Structure

public/temp                  # Contains static assets like images
src/                         # Main source code directory.

├── config/ # Configuration-related files like db and payment configurations. ├── constants/ # Constants like db name and other fixed constraints. ├── controllers/ # Contains individual controllers. Handles incoming requests and generates responses. │ └── user.controller.js # Controls user-related requests. ├── docs/ # Swagger documentation for API endpoints. ├── jobs/ # Background jobs or scheduled tasks. ├── middlewares/ # Custom Express middlewares. ├── loaders/ # Lodash routes and configurations; also validates configurations. ├── models/ # Database models; ORM files for the data layer. │ └── seeders/ # MongoDB custom seeders. ├── routes/ # Defines API routes. ├── services/ # Contains business logic and service functions. ├── utils/ # Utility classes and functions. │ ├── ApiError.js # API error class. │ ├── ApiResponse.js # API response class. │ ├── asyncHandler.js # Higher-order function to wrap async functions and handle errors gracefully. │ └── generateToken.js # Access and refresh tokens. ├── validators/ # Schema validation functions like Joi/AJV. ├── app.js # Express app setup. └── server.js # Entry point for the application.

1.1.9

9 months ago

1.1.8

9 months ago

1.1.7

9 months ago

1.1.6

9 months ago

1.1.5

9 months ago

1.1.4

9 months ago

1.1.3

9 months ago

1.1.2

9 months ago

1.1.1

9 months ago

1.1.0

9 months ago

1.0.9

9 months ago

1.0.8

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago