https://github.com/jonkirathe/mockit
The Mock Server provides a simple and flexible way to create and manage mock API endpoints. It supports authentication, token refresh, and user management, making it ideal for testing and development. This project aims to help developers by providing a ready-to-use mock server that can be easily integrated into their workflow.
https://github.com/jonkirathe/mockit
express expressjs html javascript netlify rest-api serverless socket-io
Last synced: 3 months ago
JSON representation
The Mock Server provides a simple and flexible way to create and manage mock API endpoints. It supports authentication, token refresh, and user management, making it ideal for testing and development. This project aims to help developers by providing a ready-to-use mock server that can be easily integrated into their workflow.
- Host: GitHub
- URL: https://github.com/jonkirathe/mockit
- Owner: jonkirathe
- Created: 2024-09-04T13:06:19.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-09T22:21:25.000Z (over 1 year ago)
- Last Synced: 2025-01-30T17:38:18.661Z (12 months ago)
- Topics: express, expressjs, html, javascript, netlify, rest-api, serverless, socket-io
- Language: JavaScript
- Homepage: https://mockit-server.netlify.app/
- Size: 86.9 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🚀 Mockit Server - Next-Gen API Simulation Platform
[](https://app.netlify.com/sites/mockit-server/deploys)
[](https://github.com/jonkirathe/mockit/blob/main/LICENSE)
[](https://makeapullrequest.com)
**Mockit Server** is your Swiss Army knife for API development - a feature-rich mock server with enterprise-grade security and real-time analytics. Perfect for testing, prototyping, and CI/CD pipelines!
👉 **Live Demo**: [https://mockit-server.netlify.app](https://mockit-server.netlify.app)
## 🌟 Why Mockit?
| Feature | Mockit | JSON Server | Postman Mock | Mockoon |
|------------------------|--------|-------------|--------------|---------|
| JWT Authentication | ✅ | ❌ | ❌ | ❌ |
| CSRF Protection | ✅ | ❌ | ❌ | ❌ |
| Rate Limiting | ✅ | ❌ | ❌ | ❌ |
| Interactive Docs | ✅ | ❌ | ✅ | ❌ |
| Database Simulation | ✅ | ✅ | ❌ | ✅ |
| CI/CD Ready | ✅ | ✅ | ✅ | ✅ |
## 🛠️ Features That Spark Joy
### 🔒 Security First
- **Military-Grade Auth**: JWT + CSRF token dual protection
- **Rate Limiting**: Adaptive request throttling (10 req/min default)
- **CORS Management**: Whitelist domains with wildcard support
- **HTTPS Enforcement**: Auto-redirect HTTP in production
### 💡 Smart Simulation
- **Dynamic Response Mocking**
- **Relational Data Modeling** (Users → Pets → Tasks)
- **Request Validation** (400 Bad Request auto-handling)
- **Persistent Sessions** with cookie-based storage
### 📊 Observability
- Real-time request logging
- Error tracking dashboard
- Performance metrics (Response times, error rates)
- Automated API documentation (OpenAPI 3.0 compliant)
## 🚀 Getting Started in 60 Seconds
### Prerequisites
- Node.js 16+ (LTS recommended)
- npm 8+ or yarn 1.22+
- Redis (for production rate limiting)
### Installation
```bash
# Clone with depth 1 for faster download
git clone --depth 1 https://github.com/jonkirathe/mockit.git
cd mockit
# Install dependencies
npm install
# Configure environment
cp .env.example .env