Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guitar71989/Findaloo
Findaloo is a Yelp-inspired web application designed to help New Yorkers find free and convenient restrooms in their local neighborhoods. The backend is built using Ruby on Rails on a PostgreSQL database, and the frontend employs React within the Redux framework.
https://github.com/guitar71989/Findaloo
Last synced: about 1 month ago
JSON representation
Findaloo is a Yelp-inspired web application designed to help New Yorkers find free and convenient restrooms in their local neighborhoods. The backend is built using Ruby on Rails on a PostgreSQL database, and the frontend employs React within the Redux framework.
- Host: GitHub
- URL: https://github.com/guitar71989/Findaloo
- Owner: guitar71989
- Created: 2016-10-02T18:29:58.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-21T20:29:09.000Z (about 8 years ago)
- Last Synced: 2024-08-05T08:07:29.217Z (5 months ago)
- Language: Ruby
- Homepage: http://findaloo.herokuapp.com/
- Size: 11.4 MB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- Open-Source-Ruby-and-Rails-Apps - Findaloo - a Yelp-inspired web application designed to help New Yorkers find free and convenient restrooms in their local neighborhoods 👴 ✅ 🚀 (Happy Exploring 🤘)
README
# Findaloo
[Visit Findaloo][live]
[live]: http://findaloo.herokuapp.com/#/?_k=9qe23h
Findaloo is a Yelp-inspired web application designed to help New Yorkers
find free and convenient restrooms in their local neighborhoods.
The backend is built using Ruby on Rails on a PostgreSQL database, and
the frontend employs React within the Redux framework.![Home Page](./screenshots/main-page.png)
## Features & Implementation
Findaloo is a single-page application, dynamically updating without constant
reloads. Upon first rendering, both authenticated and non-authenticated users
are brought to the index page of "loos" (i.e. restrooms) on the default map.## Map
A central feature of Findaloo is the index page's map. With the deep integration
of the Google Maps API, Findaloo has been able to enhance its geolocation
functionality. For example, the loos that are shown on the index page are
filtered by the bounds of the map (among other parameters). Other uses of the
Google Maps API autocomplete searching and adding a loo by clicking the location
on the map. In addition, Findaloo integrates Google Maps StreetView API
to seed the database with authentic pictures at each location.![Demo](./screenshots/demo.gif)
## Filtering
In addition to filtering by the bounds of the map, users can also
filter the loos on the index page by their average review ratings.
Forgoing the need to create additional columns on the loos table,
I've created class methods on the loo model which query the database to
perform this filter.![Filtering Code](./screenshots/filtering_code.gif)
## Reviews
Reviews are displayed with the current users' review at the top of the
page, and then all other user reviews following after. If the user
does not have a review, he/she are prompted to create a review for this
loo. If the user is not signed in, they will be prompted to sign in to
review this loo. To implement this, I separated out current user review
and other reviews into separate variables in the Loo controller so that
the loo show component can render them appropriately.![Reviews](./screenshots/reviews.png)
In addition to reviewing individual user reviews, by adding methods to the Loo model,
users can also retrieve aggregate data regarding average rating and number of reviews for each loo.
With Google Maps API's built-in infoWindow, this relevant information appears
when users click on an icon.![Reviews](./screenshots/addloo.png)
##User authentication
To authenticate users without storing their password, I implemented
BCrypt encryption to store an encrypted-version of the password. In addition,
I bootstrapped the current user alongside my HTML to ensure that the app
knows who the current user at all times.![User-auth](./screenshots/user-auth.png)
![User](./screenshots/user.png)
## Forthcoming
* Users will be able to create a profile
* Users will be able to sign up with Google or Facebook
* Users will be able to filter by number of reviews