Giter VIP home page Giter VIP logo

would-you-rather's Introduction

Starting the app

to run the program type in the terminal:- npm install npm start

About the app

A web app that lets a user play the “Would You Rather?” game. The game goes like this: A user is asked a question in the form: “Would you rather [option A] or [option B] ?”. Answering "neither" or "both" is against the rules. In the app, users will be able to answer questions, see which questions they haven’t answered, see how other people have voted, post questions, and see the ranking of users on the leaderboard.

Explaination of each file and what I have done in it:-

index.js

  1. I imported Provider to be able to access the store from any component using connect
  2. imported bootstrap

index.css

  1. compelmintary css code that I wrote for bootstrap

App.js

  1. I imported Route to be able to add new URL for each page in my app
  2. Added Loading Bar

server folder

  1. Wrote all the required apis in api.js

actions folder

  1. contains the action creators authedUser: action creators for the data of authenticated user in the store questions: action creators for the data of questions in the store users: action creators for the data of users in the store shared: contains the handleInitialData, handleAddAnswer functions

reducers folder

  1. Contains all the reducers needed by Redux as follows: authedUser: reducer for the data of authenticated user in the store questions: reducer for the data of questions in the store users: reducer for the data of users in the store index: contains the combineReducers function

middleware folder

  1. calls the thunk middleware

components folder

1.contains all the components used in the App

would-you-rather's People

Contributors

remonhanyz avatar

Watchers

 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.