
Overview
RapidMock Backend is a Node.js/Express backend for creating, managing, and mocking API endpoints and projects. It supports user authentication, project/endpoint management, request validation, logging, analytics, and API forwarding. It is designed for rapid prototyping and testing of APIs.
Architecture
- Framework: Node.js with Express
- Database: MongoDB (via Mongoose)
- Authentication: JWT (JSON Web Token)
- Mail: Nodemailer (Gmail)
- Job Scheduling: node-cron
- Testing: Mocha, Supertest, Expect
- Other: Axios (for proxy/forwarding), dotenv, uuid
Main Features
- User Management: Registration, login, JWT auth, email verification, password reset, profile update, soft delete.
- Project Management: CRUD, token generation, analytics.
- Endpoint Management: CRUD, versioning, request/response validation, access control (public/private), forwarding.
- API Mocking: Dynamic routing for
/api/:user/:project/:endpoint.
- Logging: All API requests are logged for analytics.