https://github.com/anburocky3/mimic-server-api
Simple fake app to use it in your apps for learning purposes.
https://github.com/anburocky3/mimic-server-api
javascript json json-server mock-server
Last synced: 7 months ago
JSON representation
Simple fake app to use it in your apps for learning purposes.
- Host: GitHub
- URL: https://github.com/anburocky3/mimic-server-api
- Owner: anburocky3
- License: mit
- Created: 2024-12-20T13:24:26.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-03-16T15:01:43.000Z (7 months ago)
- Last Synced: 2025-03-19T12:18:16.565Z (7 months ago)
- Topics: javascript, json, json-server, mock-server
- Language: TypeScript
- Homepage: https://mimic-server-api.vercel.app
- Size: 779 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mimic API Server ð§âðŧ
[](https://github.com/anburocky3/mimic-server-api)
[](https://github.com/anburocky3/mimic-server-api)
[](https://github.com/anburocky3/mimic-server-api)

[](https://bit.ly/cyberdudeDiscord)
[](https://bit.ly/cyberdudeYT)
A lightweight mock API server that serves JSON data for development and testing purposes.
#### â Live Preview: [https://mimic-server-api.vercel.app](https://mimic-server-api.vercel.app/) ðŠī
## Features
- Serves static JSON data
- RESTful API endpoints
- Supports GET, POST, PUT, DELETE methods
- Built-in web interface to explore available resources## Getting Started
### Installation
```bash
npm install
```### Running the Server
```bash
npm run dev # dev
npm start # production
```### Generate Data
```bash
npm run generate # To generate data & docs together.
# or generate individually
npm run generate-data # To generate data: db.json
npm run generate-docs # To generate docs: Postman collections
```### Helper scripts
```bash
ts-node add-ids.ts ../data/videos.json # append id to each item
```The server will start at `http://localhost:3000`
## API Documentation
You can access the API documentation in two ways:
1. Visit the web interface at `http://localhost:3000`
2. Import the [Postman Collection](http://localhost:3000/postman_collection.json) into your Postman workspace## Available Endpoints
The following endpoints are available:
- GET `/db` - Returns all available resources
- GET `/:resource` - Returns all items in a resource
- GET `/:resource/:id` - Returns a single item from a resource
- POST `/:resource` - Creates a new item in a resource
- PUT `/:resource/:id` - Updates an item in a resource
- DELETE `/:resource/:id` - Deletes an item from a resource## Deployment
The API is deployed at: [https://mimic-server-api.vercel.app/](https://mimic-server-api.vercel.app/)
## Contributing
Contributions are welcome! Please feel free to submit a Pull Request. [Contributing instruction here.](./CONTRIBUTE.md)
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## Author
[Anbuselvan Annamalai](https://facebook.com/anburocky3)
## Our valuable Contributors
1. [Yogeshwaran C](https://github.com/yogesh7401)
2. [Mr.Grootx](https://github.com/MrGrootx)
3. [SriBalan](https://github.com/sribalan98)