Skip to content

Niks4u2/Random-Quote-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random-Quote-Generator

Getting started

Install JSON Server

npm install -g json-server

Start JSON Server

json-server --watch quotes.json

Now if you go to http://localhost:3000/quotes/1, you'll get

  { "id": 1, 
    "content": "There is nothing happens to any person but what was in his power to go through with.",
    "author": "Marcus Aurelius",
    "tags": ["famous-quotes"],
    "authorId": "zW_A5fM6XU-v",
    "authorSlug": "marcus-aurelius",
    "length": 84 }

Alternative port

You can start JSON Server on other ports with the --port flag:

$ json-server --watch db.json --port 3004

Run index.html file on any live server.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published