Giter Site home page Giter Site logo

fcc-voting-app's Introduction

Voting App

User Stories :

  • Authentication

    • Sign up I can sign up by specifying my name, password.
      If the username is already in the database, I get an error.
      Once the account is successfully created, I'm automatically logged in.

    • Logout

    • Sign in I can sign in using the username and password I used to sign up
      or I can sign in using my github account

  • As an authenticated user

    • I can create a poll
      I can add from 2 to 30 choices

    • The poll is saved in the database
      I can come back later to access it using its url

      /poll/<poll.id>
      
    • I can see the aggregate results of my polls

    • I can delete polls that I decide I don't want anymore

  • As an unauthenticated or authenticated user

    • I can see and vote on everyone's polls
    • I can see the results of polls in chart form.
    • (only if auth) if I don't like the options on a poll, I can create a new option

Exemples :
https://fcc-voting-arthow4n.herokuapp.com/polls
http://votingapp.herokuapp.com

Install

  • Create a database on Mongo Atlas

  • Set the MONGO_URI environment variable

    MONGO_URI=mongodb+srv://voting-app:[email protected]/voting-app?ssl=true&replicaSet=atlas-10ci1p-shard-0&authSource=admin&retryWrites=true&w=majority&appName=voting-app
    
  • Create an App on Github > Settings > Developer Settings > OAuth Apps

    Application name: voting-app
    Homepage URL: https://voting-app-60795.herokuapp.com/
    Authorization callback URL: https://voting-app-60795.herokuapp.com/auth/github/callback
    
  • Set the GITHUB_KEY and GITHUB_SECRET environment variables

  • Set the APP_URL environment variable

    APP_URL=https://voting-app-60795.herokuapp.com/
    

fcc-voting-app's People

Contributors

a-mt 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.