SurveyMaker works with Rails 4.2.8 It uses Facebook oath strategy with Devise. You will need to aquire an APP_ID and APP_SECRET from Facebook. To set up your version with Facebook visit: Facebook for Developers
clone the repo with:
$ git clone [email protected]:DeweyBanks/survey.git
Then run
$ bundle install
Next, you need to seed the database:
$ rake db:seed
Create an .env file with the following keys:
APP_ID = "Your APP ID"
APP_SECRET = "Your APP SECRET"
ADMIN_EMAIL = "Your Email"
ADMIN_PASSWORD = "Your Password"
GMAIL_DOMAIN = "Site URL"
GMAIL_USERNAME = "Gmail Username"
GMAIL_PASSWORD = "Gmail Password"
Start your server and sign in/create your account. Make sure to add preferences in the admin section.
To run the test suite
$ rspec
Vistor = A user with no user_account
User = A user who has signed up with a user_account. Has all abilites of Vistor.
Admin = A User whos email matches the app's admin email. Has all abilities of User.
As a Vistor I should be able to create a user_account using my Facebook account.
As a Vistor I should be able to create a user_account using my email.
As a Vistor I should be able to see all of the surveys created.
As a Vistor I should be able to take all of the surveys created.
As a Vistor I should be able to see the results of all the surveys created.
As a Vistor I should be able to post the results of a survey to my Facebook Page.
As a User I should be able to create a survey.
As a User I should be able to see all of the comments left about a survey.
As a User I should be able to post a comment.
As a User I should be able to edit my comment.
As a User I should be able to delete my comment.
As a User I should be able to visit 'My Account' page
As a User I should be able to edit my user information.
As a User I should be able to see all of my surveys.
As a User I should be able to edit my surveys.
As a User I should be able to delete my surveys.
As a User I should be able to delete my account.
As an Admin I should be able to see all user_accounts
As an Admin I should be able to delete a comment.
As an Admin I should be able to delete a User account.
As an Admin I should be able to ban an email from creating an account.
a working example can be found at: SurveyMaker on Heroku