Code Monkey home page Code Monkey logo

bakery's Introduction

README

This is a practice project. It is meant to cover CRUD functions, relationships and routing. There are 3 resources and 4 tables. A baker has many recipes, but a recipe is written by only one baker. A recipe can have many ingredients. An ingredient can be used in many different recipes.

  • Clone, bundle, rake db:create

  • There are failing relationship tests. Fix these first. Validation tests are not present. Add them if you feel like it and have time.

  • Add CRUD functionality (try to add all 7 controller actions) for each resource. No user stories are given, so use your discretion. I would start with an index page, which has links to a show page for each individual item on the index page. Then add in functionality to edit an item, create a new item, and delete an item.

  • Routes have been created. Check the /config/routes.rb file. You will need to update the routes as CRUD functionality is built out.

  • If you want, you can practice migrations as well. For example, you could add a status to the Baker table, showing whether or not the baker is a chef or sous-chef.

  • There is very little, if any, ActiveRecord queries. You could make up user stories to add them, such as 'What is the average oven temperature needed for cakes', 'What is the total number of ingredients needed for all of the pie recipes', etc.

bakery's People

Contributors

earl-stephens avatar

Watchers

Paul Schlattmann avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.