Giter Site home page Giter Site logo

earmarked's Introduction

Earmarked

Earmarked is a Ruby on Rails Application that allows issue specific donating in the 2016 Presidential Election.

The website can be found here:

Earmarked.herokuapp.com

The original project guideline can be found here:

Turing School Original Assignment

To run this program:

git clone https://github.com/mcschatz/earmarked.git
rails s

Make sure you are running postgres for your database.

earmarked's People

Contributors

bad6e avatar mcschatz avatar roseak avatar travishaby avatar waffle-iron avatar

Watchers

 avatar  avatar

earmarked's Issues

Fix Dot

Fix Random li dot on pages

Fix what can be entered as a donation

As a guest,
When I click on a candidate issue,
And enter a donation amount,
I can only successfully donate if the amount is positive, incremented by 1, only integers (not text), and less than $2700

Adjusting the quantity of an item in the cart

Background: My cart has an item in it

As a visitor
When I visit "/cart"
Then I should see my item with a quantity of 1
And when I increase the quantity
Then my current page should be '/cart'
And that item's quantity should reflect the increase
And the subtotal for that item should increase
And the total for the cart should match that increase

And when I decrease the quantity
Then my current page should be '/cart'
And that item's quantity should reflect the decrease
And the subtotal for that item should decrease
And the total for the cart should match that decrease

Guest user can add donations to cart from Candidate page

As a guest user,
When I view the candidates index,
And I click on an individual candidate,
Then I can see the candidates/candidate page,
Then I select an amount to donate to an issue,
Then I click on the donate button,
Then I should see a flash that says "Successfully added to cart"
Then I am redirected to the candidates/candidate page
And can see my potential donations and cart total.

Guest creates an account

As a non-user, when I visit the landing page,
And I click the create account button,
I should be redirect to a new account page and be able to register for the app. Once I click registered, I should be logged in and redirected to the main landing page

Fix Form Styling

Form for Login and Sign Up Need to be Styled. In addition when you refresh after a failed login /signup attempt the form gets all jacked up.

Update Flashes to Appropriate Colors

When a guest/user successfully added a cart item - the "successfully added to cart is green"

When a guest creates an invalid account the message response is red

When a user logs in incorrectly the message response is red and add respective tests

ADD TESTS FOR THIS TOO

Validate Donations

It doesn't allow text in the donation field

Negative numbers and associated tests

Cart refactor

Refactoring cart controller and view logic after Josh's consultation meeting.

Registered User Logs In

As a registered user,
When I click the log in button,
And I am redirected to the login page,
And I enter my credentials,
I should see my profile page and be logged in

Logged In User Logs Out

As a logged in user,
When I slick the log out button,
I should be redirected to the main landing page and should be logged out of the app.

Removing a donation from my cart

Background: My cart has a donation in it

As a visitor
When I visit "/cart"
And I click link "Remove"
Then my current page should be "/cart"

Style profile page to match wireframe

As a logged in user,
When I visit my profile page,
I should see two buttons for browsing candidates and issues,
I should see a list of issues i've supported,
and I should see a list of my pending donations.

Fix flash error message display

currently flash errors are displaying as one long sentence, would ideally like it to be broken into multiple new lines for each message

Authenticated User

As a visitor
When I visit "/"
Then I should see a link for "Login"
And when I click link "Create Account"
Then my current page should be "/profile"
And I should see a message on the profile page that says "Logged in as SOME_USER"
And I should see my profile information
And I should not see a link for "Login"
And I should see a link for "Logout"

When I click "Logout"
Then I should see see "Login"
And I should not see "Logout"

Adding items to the cart

As a visitor
When I visit any page with an item on it
I should see a link or button for "Add to Cart"
When I click "Add to cart" for that item
And I click a link or button to view cart
And my current path should be "/cart"
And I should see a small image, title, description and price for the item I just added
And there should be a "total" price for the cart that should be the sum of all items in the cart

When I login
And I visit "/cart"
Then I should see all of the data that was there when I was not logged in

Fix /profile.1

When a user logs in you see /profile.1 and not /profile

Can Click Top Issue Links on Home Page

As a guest user,
When I view the welcome page
And I click on each of the top issues topic name
Then I should be redirected to the appropriate issue page.

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.