Giter Site home page Giter Site logo

crud-lab-v-000's Introduction

Yelpish Lab

Objectives

Implement a Yelp-like application with restaurants and reviews.

Overview

In this lab, we will practice creating and removing various items. We are working with two different resources, with each restaurant having many reviews and reviews belonging to a restaurant.

Instructions

  1. You'll first need to create a RestaurantInput component that allows a user to create new restaurants. You will then need a Restaurants component that displays a list of restaurants, and a Restaurant component which is responsible for each restaurant. Users should also be able to delete restaurants, and to implement that you will need to give each restaurant an id.

Note To implement ids, it may be worth integrating another library in the reducer called ccuid. You can see that we already imported it in the reducer file for you. The library will generate a unique id for you:

import cuid from 'cuid';

console.log(cuid());
// ch72gsb320000udocl363eofy
  1. You will also need to create a reviews resource. Users should be able to create a review that is specifically associated with the related restaurant, and those reviews should be displayed underneath the related restaurant. Users should also be able to delete a specific review.

crud-lab-v-000's People

Contributors

bhabig avatar jeffkatzy avatar lukeghenco avatar nikymorg 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.