Servers JSON files proxy throngh routes


Keywords
JSON, server, fake, proxy, API, mock, data
License
MIT
Install
npm install norice@0.0.18

Documentation

Install

npm install -g norice

write config norice.config.js

const path = require('path');

module.exports = {
  webpackDev: require('./webpack.dev.js'),
  api: {
    '/test': {
      get: {
        body: () => 'hello world!',
      },
    },
  },
};

run

$ norice -p 3000