A website containing a database of recipes indexed by ingredient and quantity of ingredient.
docker-compose builddocker-compose updocker-compose run web rails db:createdocker-compous run web rails db:migratedocker-compose run web rails db:seed
Run docker-compose run -e "RAILS_ENV = test" web spring rspec
The site features all of the main lessons I have taken from working with Ruby on Rails: it uses the mvc scheme to display pages, displays structured data stored in a database, contains forms for adding to this database, and a features a search system to filter this data. The website displays user-generated recipes, which are structured to include ingredients composed of foods and their measurements; in order to relate these together with minimal repeated storage of data, I learned about join tables and the different types of relationships between tables, including has-one, has-many, and has-and-belongs-to-many. In developing forms to add this data I dealt with issues of cleaning user-inputted data and using to fetch and update models already stored in the database and configuring public gems to work with my codebase. Finally, implementing the search system allowed me to apply what I learned from working on the NAMI project’s advanced search feature.