Skip to content

dora-js/dora-plugin-json-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dora-plugin-json-server

NPM version Build Status Coverage Status NPM downloads

json-server plugin for dora.


Usage

$ npm i dora dora-plugin-json-server -D
$ ./node_modules/.bin/dora --plugins json-server

## With arguments
$ ./node_modules/.bin/dora --plugins json-server?router=./index.js
$ ./node_modules/.bin/dora --plugins "json-server?router=./index.js&mount=/"

Test

$ npm test

Arguments

  • router - Specify file path or url as db, Default json-server.json
  • mount - Path to mount, Default /api

LICENSE

MIT