https://github.com/micromata/generator-http-fake-backend
Yeoman generator for building a fake backend by providing the content of JSON files or JavaScript objects through configurable routes.
https://github.com/micromata/generator-http-fake-backend
api backend data fake fake-data http http-server json mock mocking mocking-server mocks node nodejs rest rest-api restful restful-api yeoman yeoman-generator
Last synced: 10 days ago
JSON representation
Yeoman generator for building a fake backend by providing the content of JSON files or JavaScript objects through configurable routes.
- Host: GitHub
- URL: https://github.com/micromata/generator-http-fake-backend
- Owner: micromata
- License: mit
- Archived: true
- Created: 2016-03-19T23:58:11.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-10-20T18:14:40.000Z (over 2 years ago)
- Last Synced: 2025-07-21T11:22:50.710Z (6 months ago)
- Topics: api, backend, data, fake, fake-data, http, http-server, json, mock, mocking, mocking-server, mocks, node, nodejs, rest, rest-api, restful, restful-api, yeoman, yeoman-generator
- Language: JavaScript
- Homepage:
- Size: 400 KB
- Stars: 59
- Watchers: 13
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## Sorry, this project is unmaintained 😢
Thanks to all contributors for your work!
[](http://badge.fury.io/js/generator-http-fake-backend)
[](https://travis-ci.org/micromata/generator-http-fake-backend)
[](https://coveralls.io/github/micromata/generator-http-fake-backend?branch=master)
[](https://david-dm.org/micromata/generator-http-fake-backend)
[](https://david-dm.org/micromata/generator-http-fake-backend#info=devDependencies)
[](https://www.youtube.com/watch?v=qRC4Vk6kisY)
# 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](https://github.com/micromata/http-fake-backend) 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](http://yeoman.io) and `generator-http-fake-backend` using npm (we assume you have pre-installed [Node.js](https://nodejs.org/) 6.0.0 or greater).
```bash
# 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:
```bash
yo http-fake-backend
```
## Generating endpoints
```bash
yo http-fake-backend:endpoint
```

Please see detailed info regarding how to adjust your endpoints over here:
## 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://yeoman.io/).
## Related
* [http-fake-backend](https://github.com/micromata/http-fake-backend) – Static version of the hapi server that this generator creates.
## License
MIT © [Micromata](www.micromata.de)
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](LICENSE).