Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

generator-http-fake-backend

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-http-fake-backend

Build a fake backend by providing the content of JSON files or JavaScript objects through configurable routes.

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

npm version Build Status Code Climate Coverage Status Dependency Status devDependency Status Unicorn

Yeoman generator for http-fake-backend

Build a fake backend by providing the content of JSON files or JavaScript objects through configurable routes.

     _-----_
    |       |    .--------------------------.
    |--(o)--|    |      Welcome to the      |
   `---------´   |        phenomenal        |
    ( _´U`_ )    |     http-fake-backend    |
    /___A___\    |        generator!        |
     |  ~  |     '--------------------------'
   __'.___.'__   
 ´   `  |° ´ Y ` 

Please check the README of »http-fake-backend« to get detailed information about what it’s all about.

This readme only contains the gist of it and mainly describes Yeoman specific things.

Installation

First, install Yeoman and `generator-http-fake-backend using npm (we assume you have pre-installed node.js).

# via Yarn
yarn global add yo
yarn global add generator-http-fake-backend

# via npm
npm install -g yo
npm install -g generator-http-fake-backend

Then generate your fake backend server:

yo http-fake-backend

Generating endpoints

yo http-fake-backend:endpoint

Demo

Please see detailed info regarding how to adjust your endpoints over here: https://github.com/micromata/http-fake-backend

Start the server

npm run start:dev

This way the server uses nodemon to restart itself on changes. This way you dont have to restart the server in case you changed an endpoint.

Getting To Know Yeoman

Yeoman has a heart of gold. He’s a person with feelings and opinions, but he’s very easy to work with. If you think he’s too opinionated, he can be easily convinced. Feel free to learn more about him.

  • http-fake-backend – Static version of the hapi server that this generator creates.

License

MIT © Micromata

Please be aware of the licenses of the components we use in this project. Everything else that has been developed by the contributions to this project is under MIT License.

Keywords

FAQs

Package last updated on 20 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc