GitXplorerGitXplorer
G

Json-Server

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
8e6db814603630a25e384821aecaaacee21c82ec

refatoração

GGeordani-Machado committed 7 months ago
Unverified
7deb1f5c3872785de48b866cc3c2e9c922a600b2

refatoração

GGeordani-Machado committed 7 months ago
Unverified
af6b970500d7bb9ee7b03feb7379b28997cb0814

refatoração

GGeordani-Machado committed 7 months ago
Unverified
cdb807eb4cdbf26104fde161f330bc82121f8381

preço

GGeordani-Machado committed 7 months ago
Unverified
a3f237eac0f3fc18a2bb5d6073613d7ed7d49612

itens

GGeordani-Machado committed 7 months ago
Unverified
3a5cd26cf5aa0d1b632a4ed712cd381bbc36feb9

food app api

GGeordani-Machado committed 7 months ago

README

The README file for this repository.

Deploy JSON Server to Vercel

A template to deploy JSON Server to Vercel, 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 in the repository.
  3. Sign Up or login into Vercel.
  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

{
  "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