Code Monkey home page Code Monkey logo

would-you-rather's Introduction

Would you rather

A Udacity Nanodegree project. Allows logging in as a user and answering questions about what a user would rather do between two given choices, viewing the results, adding new questions and viewing the leaderboard.

The project makes a use of Redux and uses a single store to store the shared state.

Available Scripts

In the project directory, you can run:

npm install

To install the required npm packages

npm start

To run the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

would-you-rather's People

Contributors

eurubkov avatar

Watchers

 avatar

would-you-rather's Issues

Create a QuestionsList component

As a logged-in user, I want to view answered and unanswered questions, sorted from the most recently created to the oldest one.
Until further exploration, let's assume we can use the same Questions component for both, answered and unanswered polls.

Create a home page component

As a logged in user, whenever I am on the home page, I want to:

  • See the name of the user I am logged in as
  • Be able to navigate to the leaderboard
  • Be able to navigate to the form to create a new poll
  • Have unanswered questions displayed to me by default
  • Have the ability to toggle between answered and unanswered polls

Create a Leaderboard component

The Leaderboard is available at/leaderboard.
Each entry on the leaderboard contains the following:
the user’s name;
the user’s picture;
the number of questions the user asked; and
the number of questions the user answered.
Users are ordered in descending order based on the sum of the number of questions they’ve answered and the number of questions they’ve asked.

Prompt to log in when typing in address bar

Whenever the user types something in the address bar, the user is asked to log in before the requested page is shown

The application asks the user to sign in and shows a 404 page if that poll does not exist. (In other words, if a user creates a poll and then the same or another user tries to access that poll by its url, the user should be asked to sign in and then be shown a 404 page. Please keep in mind that new polls will not be accessible at their url because of the way the backend is set up in this application.)

Create a LoginPage Component

As a player, I want to be able to select a user from the list of available users on the login page so I could play the game.

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.