Skip to content

MartinMoller/code_jsonserver_with_errors

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modified json-server that creates json-error responses

Getting started

  • If not alredy done, install nodejs
  • Clone this project
  • In the folder it was cloned into, type npm install
  • Place this file: users.json into the ROOT of the project

run the server in any of the following ways:

  • npm start Run the server with CORS headers, using the file users.json and no auto-fail
  • npm run autofail Run the server with CORS headers, using the file users.json. Randomly generates server faults (status:500)
  • npm run autofailnocors Run the server WITHOUT CORS headers, tusing he file users.json. Randomly generates server faults (status:500)
  • npm run nocors Run the server WITHOUT CORS headers, using the file users.json and with no auto-fail

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 66.1%
  • HTML 33.9%