Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vertocode/rest-json-server-api
Rest API dedicated to using my application to import Apple products.
https://github.com/vertocode/rest-json-server-api
Last synced: 7 days ago
JSON representation
Rest API dedicated to using my application to import Apple products.
- Host: GitHub
- URL: https://github.com/vertocode/rest-json-server-api
- Owner: vertocode
- License: mit
- Created: 2023-04-07T15:02:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-28T23:17:39.000Z (over 1 year ago)
- Last Synced: 2023-11-16T16:45:32.731Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://apple-imports-api.vercel.app
- Size: 145 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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" }
}
```## Reference
1. https://github.com/typicode/json-server
2. https://vercel.com
3. https://shadowsmith.com/how-to-deploy-an-express-api-to-vercel