Skip to content

MichaelMCoates/Greenhouse

Repository files navigation

Greenhouse

Greenhouse Live Link

Summary

Greenhouse is a full-stack clone of Indiegogo, a crowdfunding application. It is built with Ruby on Rails and PostgreSQL on the backend, and React.js and Redux.js on the frontend.

The application allows the user to do the following:

  • Create user accounts
  • Log in to and log out of user accounts
  • Edit their user profile
  • View and create campaigns
  • Contribute to a campaign
  • View, create, and purchase perks from campaigns
  • View a user's profile, campaigns, and campaigns they've contributed to
  • Search for campaigns by both keywords and categories

Greenhouse uses the following libraries, languages, technologies, and frameworks:

  • Ruby on Rails
  • PostgreSQL
  • React.js
  • Redux.js
  • AWS
  • Heroku
  • Webpack
  • Libraries:
    • Moment.js
    • rc-progress
    • react-slick
  • Gems:
    • pg_trgm
    • BCrypt
    • Paperclip
    • JBuilder
    • Figaro

Application Features

Here are summaries of the main features of Greenhouse. Links to the code itself are provided.

Home Page

Home Page

The user will typically start at the Home Page of Greenhouse. The Home Page shows featured campaigns, suggested campaigns, and campaign categories.

Carousels

The main feature of the Home Page is its two Carousels. The top Featured Carousel shows Greenhouse's featured campaigns, and is implemented using CSS3 Animations. The user can navigate through the campaigns by clicking on the neighboring campaigns, which triggers the animation. The bottom carousel shows suggested campaigns for the user, and is implemented using react-slick. Campaign information is given to a Campaign Tile component for rendering.

Category Boxes

Beneath the carousels, users can click on any of the Category Boxes to be taken to the Search/Categories Page.


Campaign Show Page

Campaign Show Page

When the user clicks on a campaign, they are taken to the Campaign Show Page. This page gives information about the campaign, from the user that created it, to the amount that it has been funded thus far.

Funding Bar

The Funding Bar uses Moment.js and rc-progress to render campaign fundraising information. It updates automatically as time progresses, and if users purchase perks, or contribute to a campaign.

Back It Button

The Back It Button allows the user to contribute to a campaign. It has a click handler to toggle the input field for the user. It also has front-end validations to ensure that the user is logged in before they are redirected to the Check Out Page.

Campaign Overview

The Campaign Overview section has a small summary of the campaign, and a clickable category button that takes the user to the Search/Categories Page. Beneath the summary, the story of the campaign is displayed.

Perks

Perks for a campaign are displayed in the bottom right corner. A user can click on a Perk to purchase it from the campaign. The perks have front-end validations to ensure that the user is logged in before they are redirected to the Check Out Page. Perks are fetched independently of campaigns, but their campaign_id foreign key (which corresponds to the campaign they are associated with) is indexed in the database for fast lookup. Their information is updated automatically as they are purchased.


Check Out Page

Check Out Page

After a user either clicks on a Perk, or on the Back It Button, they are redirected to the Check Out Page. Here, they can fill in their payment information, how they would like their contribution to be displayed, and edit their contribution amount. This page has front-end validations to prevent a user from contributing without choosing their appearances, and prevent a user from accessing the Check Out Page without logging in.

Check Out Total

The right side of the page displays the Check Out Total component. This component is rendered conditionally, depending on whether the user is purchasing a perk, or simply making a contribution. If the user is making a contribution, it allows the user to change their contribution, or add a perk. If they are purchasing a perk, it displays the perk information instead. Both instances display the total cost of the contribution the user is making, and the button to submit their payment.


User Show Page

User Show Page

When a user clicks on a user's name or clicks on "My Profile" in the navigation bar after clicking their own name, they are taken to the User Show Page. Here, a user can view information about the user.

Current User Bar

If a user is viewing their own profile, the Current User Bar is displayed, which allows the user to edit their profile information.


Campaign Create Page

Campaign Create Page

The Campaign Create Page allows the user to create a campaign on Greenhouse. Here, they can edit everything about a campaign, from the category it's in, to its story. All state information about the campaign is stored locally, at the top level, to ensure state preservation between pages, speed up state updating, and enforce input validations for the entire campaign. The user can navigate between pages using the Campaign Create Sidebar.


Perk Editor

Perk Editor

The Perk Editor allows the user to create perks for their campaigns. They can customize the price, description, number available, and estimated date of delivery. If they save the perk to the campaign, it is previewed on the page (by re-using the Perk component from the Campaign Show Page).


Search/Categories Page

Search Categories Page

If the user either searches using the Search Input in the Navigation Bar, or clicks on a category on a Campaign Show Page or Campaign Tile component, they are redirected to the Search/Categories Page. This page allows a user to search through campaigns on Greenhouse, and also search within a category for campaigns (which is a feature that Indiegogo does not have). This search uses Trigram Searching on the backend (using the pg_trgm gem) to enable fuzzy search. Even if a user misspells the word they are searching for, this search will still return the results they are looking for. Campaign information is given to a Campaign Tile component for rendering.


Upcoming Features

There is still work to be done on Greenhouse. The following is a list of features that still need implementation:

  • User profile image upload
  • Campaign image upload
  • Comments, Updates, and Backers for Campaigns
  • Rich-text formatting for Campaign Stories
  • Campaign editing and deletion
  • Perk editing and deletion
  • Campaign previewing
  • Campaign saving without launching
  • Search filters

About

Greenhouse is a full-stack clone of Indiegogo, built with Ruby on Rails and React.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published