https://github.com/umasahni/complete-projects-json-server
Deploy JSON Server to Vercel, allow you to run fake REST API online!
https://github.com/umasahni/complete-projects-json-server
deploy json json-api vercel
Last synced: 4 months ago
JSON representation
Deploy JSON Server to Vercel, allow you to run fake REST API online!
- Host: GitHub
- URL: https://github.com/umasahni/complete-projects-json-server
- Owner: UmaSahni
- Created: 2023-07-05T06:05:03.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-24T07:04:51.000Z (almost 2 years ago)
- Last Synced: 2025-01-11T13:32:18.785Z (5 months ago)
- Topics: deploy, json, json-api, vercel
- Language: JavaScript
- Homepage: https://complete-projects-json-server.vercel.app
- Size: 57.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Deploy JSON Server to Vercel
A template to deploy [JSON Server](https://github.com/typicode/json-server) to [Vercel](https://vercel.com), allow you to run fake REST API online!
Demo from this repository:
1. https://json-server-in.vercel.app
2. https://json-server-in.vercel.app/api/posts### How to use
1. Click "**Use this template**" or clone this repository.
2. Update or use the default [`db.json`](./db.json) in the repository.
3. Sign Up or login into [Vercel](https://vercel.com).
4. From the Vercel dashboard, click "**+ New Project**" then "**Import**" your repository.
5. In the "**Configure Project**" screen, leave everything default and click "**Deploy**".
6. Wait until deployment is done, and your own JSON server is ready to serve!## Default `db.json`
```json
{
"posts": [
{ "id": 1, "title": "json-server", "author": "typicode" }
],
"comments": [
{ "id": 1, "body": "some comment", "postId": 1 }
],
"profile": { "name": "typicode" }
}
```