Coder Social home page Coder Social logo

react-yearbook's Introduction

#React Yearbook

As WDI comes to a close, what better way to celebrate than with a yearbook... of random people? Let's try incorporating the React Router with a random user API.

##Getting Started

  • Fork and clone this repository
  • Run npm install to install all dependencies
  • Run gulp
    • This command will run tasks to transpile an existing React app
  • Run nodemon in a separate terminal tab
    • This command will run the Express server needed to view the app
  • Take a look at the existing app

The current application interacts with https://randomuser.me at two different API endpoints:

  • /api/people - returns 50 people
  • /api/people/:idx - returns a person at a particular index (0-49)

Try taking a look at the results and see what else the API returns.

##Requirements

  • Incorporate React Router so that each person routes to a new page
    • Each person's name should link to a "show" page
    • Suggested route: /people/:id
    • Each "show" page should have a link to go back to the home page

##Suggested Process

  • Install react-router
  • Include dependencies
  • Identify the routes you'll need to create, and setup the app to use react-router.
  • Test the routes with some of the preexisting components
  • Incorporate links and route params

##Bonus

  • Add two additional pages
    • /about
      • Give some information about the (nonexistent) school
    • /superlatives
      • Query the Random User API again to retrieve random users (remove the seed). Then, assign random superlative awards
      • This may involve creating an additional endpoint
      • Superlative ideas:
        • Best dressed
        • Weirdest smile
        • Top competitive eater

react-yearbook's People

Contributors

bhague1281 avatar

Watchers

James Cloos 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.