This Express service provides authorization functionality and includes separate folders for users and products. It uses Sequelize ORM with SQLite as the database, along with JSON Web Token (JWT) and AJV libraries for token-based authentication and JSON schema validation.
index.js: The main entry point of the application.config.js: Contains configuration files for the application.authorizationcontrollers: Controller files for authentication endpoints.schemas: JSON Schemas against which the body of various routes will be validated.routes.js: Registers all the authentication routes.
productscontrollers: Controller files for product master CRUD endpoints.schemas: JSON Schemas against which the body of various routes will be validated.routes.js: Registers all the product CRUD routes.
userscontrollers: Controller files for user master CRUD endpoints.schemas: JSON Schemas against which the body of various routes will be validated.routes.js: Registers all the user CRUD routes.
commonmiddlewares: Various middlewares that can be used in various routes like (isAuthenticated, CheckPermissions etc.)models: Sequelise models for the Product and User Tables
storage: Local storage, that stores all the SQLite tables.
- Sequelize ORM with SQLite for database operations
- JWT (JSON Web Token) for secure user authorization
- AJV for validating JSON request bodies against schemas