Giter VIP home page Giter VIP logo

anthonygharvey / shelter-gifts Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 266 KB

A Ruby on Rails app that makes it easy to donate directly to shelters by scraping their Amazon wishlists

Home Page: https://shelter-gifts.herokuapp.com/

Ruby 61.13% JavaScript 4.72% CSS 1.75% HTML 30.64% CoffeeScript 0.77% SCSS 0.99%
ruby-on-rails ruby sqlite3 postgres heroku omniauth rspec shoulda-matchers faker-gem heroku-deployment

shelter-gifts's Introduction

Build Status

forthebadge

Shelter Gifts - An app that makes it easy to donate items of need directly to homeless shelters across the country!

Description

Shelter Gifts makes it easy for visitors to browse a curated list of items that are needed by shelters across the country. The list of items come directly from the individual shelters; specifically from their Amazon Wishlists.

Shelters can register with the app and save a link to their Amazon Wishlist. Once they do, all of the items on their wishlist are added to the Shelter Gifts collection and made available for all visitors to see!

Visitors can browse the list of items needed on the homepage, where each item is presented with a photo, description, price and information about the shelter and their need for the item. Each item is also presented with a button for visitors to add the item directly to their Amazon cart, where they can purchase the item and have it shipped by Amazon directly to the shelter that requested it!

Demo

App link: Shelter Gifts

Shelter Gifts is currently in demonstration mode and currently has only one verified shelter, the Men's Shelter of Charlotte.

In demo mode, you can register, create a shelter and save an Amazon Wishlist URL and the items will be added to the collection and displayed on the homepage. The open registration is intended to demonstrate the functionality of the app; however, the app resets every 30 minutes to only show verified shelters and their items (the Men's Shelter of Charlotte currently).

Local Installation

To install and run the app on your local machine:

  1. Click the green Clone or download button above and click the copy to clipboard button
  2. From your terminal, run git clone [paste the link from step 1]
  3. Then run cd shelter-gifts to navigate to the shelter-gifts directory
  4. Run bundle install to install the necessary gems and dependencies
  5. Run rake db:migrate to perform the database migrations
  6. Run rails s to start a local rails server
  7. Go to localhost:3000 to view the app!

Tests

The tests for this app were written with RSpec, the faker gem (to generate fake data for the tests) and the shoulda-matchers gem (to write more readable relationship tests).

You can run the entire test specs by running rspec, or you can perform tests for a particular file by running rspec spec/folder_name/file_name.rb.

Development Approach

If you'd like to know more about my approach to developing the app, feel free to check out the article I wrote on my website and the Shelter Gifts about page.

shelter-gifts's People

Contributors

anthonygharvey 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.