Live site: https://fcc-voting-booth.herokuapp.com/
A full stack application integrated with MongoDB. Created with a Node/Express backend and a ReactJS front end.
-
As an authenticated user, I can keep my polls and come back later to access them.
-
As an authenticated user, I can share my polls with my friends.
-
As an authenticated user, I can see the aggregate results of my polls.
-
As an authenticated user, I can delete polls that I decide I don't want anymore.
-
As an authenticated user, I can create a poll with any number of possible items.
-
As an unauthenticated or authenticated user, I can see and vote on everyone's polls.
-
As an unauthenticated or authenticated user, I can see the results of polls in chart form. (This could be implemented using Chart.js or Google Charts.)
-
As an authenticated user, if I don't like the options on a poll, I can create a new option.
Get list of all polls available to all viewers
GET /polls
Get information on a singlie poll
GET /polls/:pollId
Signs up new user and adds to DB
POST /signup
Logs user in
POST /login
Logs user out
POST /logout
Vote on a poll
PUT /polls/:pollId?option=
Go to the create new poll page if authenticated
GET /createpoll
create new poll if authenticated
POST /createpoll
Add option to poll if authenticated
PUT /polls/newoption/:pollId?option=
Delete poll if authenticated
DELETE /polls/:pollId
Get list of users poll if authenticated
GET /mypolls