This project serves as the backend for the Allergies front-end. It contains a database of 2500 recipes and contains an JSON file that can be used to seed even more.
Easiest way to ensure that you have adequate environment is to use RVM.
Using Rails v. 5.1.4 and Ruby v. 2.3.
First run: bundle install
$ bundle install
Create the database and run the migrations:
$ rails db:create
$ rails db:migrate
Before you seed the database, check out ./db/seeds.rb Currently the rake task will run up to the first 2,500 recipes. However, the full JSON file contains over 10,000 recipes. Note* do not try to open the JSON file using Atom or Sublime, the size of the JSON will crash the text editor. When you are ready, run:
$ rails db:seed
You can run rake
in place of rails
, it makes no difference.
If there is nothing else running on port 3000, simply run:
$ rails s
- Ruby on Rails
- PostgreSQL
- Recipes from Epicurious https://www.epicurious.com/
Latest version is always available under the master branch in this repository.
- Kenny Lin
- Kesean Woodhouse - https://github.com/kesean
This project is licensed under the MIT License - see the LICENSE.md file for details
- Flatiron School and especially Kesean Woodhouse for seeing this project through.