A template to deploy JSON Server to Vercel, allow you to run fake REST API online!
Demo from this repository:
- https://codx-json-server.vercel.app/
- https://codx-json-server.vercel.app/Menu
- https://codx-json-server.vercel.app/feedback
- Click "Use this template" or clone this repository.
- Update or use the default
db.json
in the repository. - Sign Up or login into Vercel.
- From the Vercel dashboard, click "+ New Project" then "Import" your repository.
- In the "Configure Project" screen, leave everything default and click "Deploy".
- Wait until deployment is done, and your own JSON server is ready to serve!
{
"Menu": [
{
"section_name": "Desserts",
"items": [
{
"name": "Chocolate Lava Cake",
"description": "Warm chocolate cake with a gooey molten center, served with vanilla ice cream.",
"price": 6.99,
"image": "https://github.com/codx-paradise/Json-Server/blob/main/Images/breakfast1.png"
}
],
"feedback": [
{
"customer_name": "Emily Johnson",
"rating": 4.8,
"feedback_text": "I had an amazing stay at Luxury Haven Hotel. The staff was incredibly welcoming, and the room was spacious"
}
]
}