Skip to content
This repository has been archived by the owner on Aug 17, 2019. It is now read-only.
/ fake-server Public archive

🚦Full fake REST APIs for frontend test πŸ“ Powered by JSON Server πŸš€πŸš€

Notifications You must be signed in to change notification settings

huynhsamha/fake-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

fake-server

🚦Full fake REST APIs for frontend test πŸ“ Powered by JSON Server πŸš€πŸš€

Created with ❀️ for front-end developers who need a quick back-end for prototyping and mocking.

No setup required, available database and REST APIs on heroku.

All features powered by JSON Server

Database up to 200 users for testing.

Quickstart

  • Clone or download the project
  • Install NPM packages
npm install
  • Generate your database if you want (optional)
npm run gen
  • Start json-server (Please see package.json for more detail)
npm run start:dev
# or use `npm start`

Output:

➜ npm start
> json-server --watch db.json

  Resources
  http://localhost:3000/addresses
  http://localhost:3000/comments
  http://localhost:3000/companies
  http://localhost:3000/posts
  http://localhost:3000/profile
  http://localhost:3000/token
  http://localhost:3000/users

  Home
  http://localhost:3000

  Type s + enter at any time to create a snapshot of the database
  Watching...

Available APIs

Endpoints

Endpoints:

  • Single documents: profile, token, login, signup, changePassword, logout, message
  • Plural documents: users, posts, comments, companies, addresses

Examples:

Single documents:

Plural documents

GET one

Examples:

Filter

?[field]=[value]

Examples:

Paginate

_page, _limit

Examples:

Sort

_order, _sort

Examples:

Operators

_gte, _lte, _ne, _like

Examples:

Full-text search

?q=

Examples:

Relationship

_expand, _embed

Donate

Donate to my paypal

About

🚦Full fake REST APIs for frontend test πŸ“ Powered by JSON Server πŸš€πŸš€

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published