generated from azures04/Base-REST-API
Introduces a new SQLite database setup using better-sqlite3, with initialization scripts and repository modules for users, permissions, and licenses. Removes legacy user and register routes and related test files. Updates dependencies to include better-sqlite3, bcryptjs, and ftp-srv.
Base-REST-API
A robust, modular, and secure REST API boilerplate built with Node.js and Express. It features a recursive file loader for routes and schemas, along with a powerful validation middleware using Zod.
🚀 Features
- Automated Loading: Recursively loads routes and validation schemas from the file system.
- Strict Validation: Request bodies and query parameters are validated using Zod before reaching the controller.
- Clean Architecture: Separation of concerns with
Routes(HTTP layer),Services(Business logic), andSchemas(Validation). - Security First: Inputs are stripped of unknown fields automatically.
- Custom Logger: Integrated color-coded logging system for development and file logging for production.
- Error Handling: Standardized JSON error responses.
📦 Installation
- Clone the repository
git clone https://gitea.azures.fr/azures04/Base-REST-API.git cd Base-REST-API
Description
Languages
JavaScript
100%