Giter Club home page Giter Club logo

good-eats's Introduction

Instructions

Create a Rails application that allows users to view restaurants. The application must satisfy the following criteria:

  • A restaurant must have a name, address, city, state, and zip code. It can optionally have a description and a category (e.g. thai, italian, chinese).
  • Visiting the /restaurants path should contain a list of restaurants.
  • Visiting the /restaurants/new path should display a form for creating a new restaurant.
  • Visiting the /restaurants/10 path should show the restaurant details for a restaurant with ID = 10.
  • Visiting the root path should display a list of all restaurants.

Once these criteria have been met, add the ability for users to review restaurants. The application must satisfy the following criteria:

  • A restaurant can have many reviews. Each review must contain a rating between 1 and 5, a body, and a timestamp for when it was created.
  • Visiting the /restaurants/10/reviews/new should display a form for creating a new review for a restaurant with ID = 10.
  • Visiting the /restaurants/10 path should also include all reviews for a restaurant with ID = 10.

For this challenge assume all restaurants and reviews are submitted anonymously (user authentication is not required). In addition, acceptance tests are optional but not required.

To get started, create a new Rails application with the following command:

$ rails new good_eats --database=postgresql -T

good-eats's People

Contributors

getschomp avatar

Watchers

 avatar  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.