1.3.1 • Published 5 years ago
@instant-api/recipe-book v1.3.1
Instant Recipes Book API
A CLI to create a small Recipes Book API
This package let you quickly create a small JSON API to
- Add a recipe
- List all recipes
- Update a recipe
- Delete a recipe
- List all tags
- List all recipes for a tag
It uses a single JSON file to store data.
Why ?
The aim of this package is to provide an API for front-end exercices, allowing student to use an API without having to set on up themself.
Who made this ?
Hi ! I'm Etienne, you can follow me on Twitter 😉
Usage
npx @instant-api/recipe-bookOptions
--portor-p: The port to use--fileor-f: The path to the json file used to store data.
Note: By default the file is set to recipe-book-db.json.
npx @instant-api/recipe-book --port 9000 --file recipes.jsonIf you provide an argument with no name is will be used as the file argument
npx @instant-api/recipe-book --file recipes.json