Professional kitchens need to know their recipe costs to profitably price their food. Recipe Costs makes it easy to determine both the full cost and cost per serving of each recipe.
This repository houses the Rails API, supplying data to the JavaScript frontend interface.
- Clone this repo.
- Install dependences:
$ bundle install
- Install PostgreSQL. Using Homebrew on macOS this looks like:
$ brew install postgresql
- Start and log in to Postgresql database:
$ brew services start postgresql
$ psql postgres
- Create database structure:
$ rails db:create
$ rails db:migrate
- Run web server:
$ rails s
- Navigate to
localhost:3000
in your browser.
-
Add your own data via command line by using
rails c
. -
Use test data by running the seed file:
$ rails db:seed
Bug reports and pull requests are welcome on GitHub at https://github.com/aparkening/recipe_costs_api. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Tea Tastes project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.