recipes
Version, currently dist1 version
- distlatestJun 22, 2018
github.com/amberframework/recipes
Code recipes for Amber Framework
14 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
recipes:
github: amberframework/recipes
version: ~> distThen run:
shards installshard.yml
- Crystal
- no constraint declared
- License
- MIT
- Author
- Amber Team and contributors <amberframework.org>
- Target
amberfrom lib/amber/src/amber/cli.cr
Dependencies
Runtime Dependencies
- amber*github: amberframework/amber, branch: master
README
# Code generation recipes for the [Amber Web Framework](https://amberframework.org) Amber generators can use a recipe to generate your application, and scaffold your application with controllers, models and views. Using a recipe you can get started with an amber application that extends or modifies the standard built in generator or provides additional features. For example you might want an API application that only renders JSON or use React or AngularJS for views. To create an amberframework application from a recipe type; ```sh amber new <appname> -r <recipe> ``` to create a new amber app from the given named recipe in a folder with the given appname. The given recipe can be either - a recipe from this repository - a directory with an application template - a URL pointing to a recipe folder (which should contain an app template) Read the **Recipes** section in the [online guides](https://amberframework.org/guides) for more information. ## Available recipes Recipes in this repository are divided into themes based on the kind of application and scaffolding generated by the recipe. For example the **basic_granite** recipe mimics the Amber built-in application template using the Granite ORM. To create a new amber app from this recipe at the command line type ```sh amber new newapp -r basic_granite ``` to create a new amber app from the recipe at basic_granite in the folder newapp. ```sh amber new newapp -r default ``` Uses a copy of the standard built-in template and is the same as typing ```sh amber new newapp ``` ## Using a template in a local folder You can use a local folder as the source template for a new amber application e.g. ```sh mkdir default_recipe wget https://raw.githubusercontent.com/amberframework/recipes/master/dist/default.zip unzip -d default_recipe default.zip amber new newapp -r default_recipe ``` The result of which is equivalent to ```sh amber new newapp -r default ``` ## Available Recipes Read [Contributions](https://github.com/amberframework/recipes/blob/master/Contributions.md) to see a list of available themes and app recipes. Each theme folder provides additional information in the folder README. ## Recipe issues If you notice a problem with a recipe please raise an issue including example of the expected output and actual output or any errors using the application generated by the recipe. ## Notes to Contributors Recipes use the [Liquid template language](https://github.com/TechMagister/liquid.cr). The file extension should be **.liquid** but if you prefer shorter 3 letter file extensions you can also use **.lqd** which is an unknown or unnassigned file extension. ### To create a new recipe 1. Fork https://github.com/amberframework/recipes 2. Clone your fork using `git clone` 3. Create a new sub folder in the appropriate theme folder (or create a new theme if it doesn't already exist). 4. Copy an existing recipe and make your modifications. 5. Submit a PR. Recipes should contain the following templates: - app - controller - model - scaffold Don't forget to add an entry to Contributions.md and the theme folder README.md about your recipe. Many Thanks.
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
dist- Tagged
- Jun 22, 2018
- Commit
44e1cb79f8ce- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/amberframework/recipes
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 1