Conservancy's Improvements and changes to the Houdini project. These are generally upstreamed but some items are Conservancy-specific, particularly some items in the docs/ directory on the conservancy/current branch.
Find a file
2020-02-28 16:07:17 -06:00
.github/ISSUE_TEMPLATE Create config.yml 2020-02-19 14:53:00 -06:00
app Fix for campaign creator email being sent to donor 2019-09-17 16:19:03 -05:00
client Fix bug where ticket payment form doesn't work 2019-05-30 13:07:08 -05:00
config Remove airbrake 2019-03-01 13:13:42 -06:00
db Campaign export calculations are fixed and specs 2018-12-04 16:40:48 -06:00
docker Fixes travis build 2019-09-17 15:56:28 -05:00
gems Add support for a left join lateral 2019-02-25 17:16:31 -06:00
javascripts Move nonprofit branding to a TS file 2019-05-23 14:29:19 -05:00
lib Add some documentation to the Mailchimp code 2019-08-07 13:15:47 -05:00
public wip-fix copying images 2018-11-21 11:00:44 -06:00
script Fixes travis build 2019-09-17 15:56:28 -05:00
spec Remove unused js specs 2019-10-22 14:36:00 -05:00
types Remove unused react-autocomplete 2019-07-26 11:15:50 -05:00
.babelrc Initial commit. Previous history maintained by CommitChange 2018-03-25 13:30:42 -04:00
.bootstraprc CurrencyField Addition 2018-10-25 12:43:04 -05:00
.buildpacks Initial commit. Previous history maintained by CommitChange 2018-03-25 13:30:42 -04:00
.dockerignore Add ruby-param-validation to repo 2019-01-09 18:22:42 -06:00
.env.template Initial commit. Previous history maintained by CommitChange 2018-03-25 13:30:42 -04:00
.env.test Working .travis.yml 2018-11-12 16:46:17 -06:00
.eslintrc.js Relicense Javascript code in accordance with project's new license 2018-03-25 15:10:40 -04:00
.gitignore Add CampaignTemplate 2018-11-21 11:00:44 -06:00
.jshintrc Initial commit. Previous history maintained by CommitChange 2018-03-25 13:30:42 -04:00
.rspec Initial commit. Previous history maintained by CommitChange 2018-03-25 13:30:42 -04:00
.ruby-version Revert "Merge pull request #1 from idengager/staging" 2018-11-21 11:00:44 -06:00
.solargraph.yml Add solargraph so it works in any tools that use it 2019-01-18 12:55:16 -06:00
.travis.yml Working .travis.yml 2018-11-12 16:46:17 -06:00
AGPL-3.0.txt AGPLv3, as downloaded from https://www.gnu.org/licenses/agpl-3.0.txt 2018-03-25 15:10:40 -04:00
CC0-1.0.txt Creative Commons 0 1.0 Universal (CC0 1.0), Public Domain Dedication, as downloaded from: http://creativecommons.org/publicdomain/zero/1.0/legalcode.txt 2018-03-25 15:10:39 -04:00
CODE_OF_CONDUCT.md Initial commit. Previous history maintained by CommitChange 2018-03-25 13:30:42 -04:00
config.ru Initial commit. Previous history maintained by CommitChange 2018-03-25 13:30:42 -04:00
dc fix docker name so it works consistently 2019-03-06 08:58:20 -05:00
Gemfile Remove airbrake 2019-03-01 13:13:42 -06:00
Gemfile.lock Bump puma from 3.12.2 to 3.12.4 2020-02-28 21:45:48 +00:00
GPL-3.0.txt GPLv3, as downloaded from https://www.gnu.org/licenses/gpl-3.0.txt 2018-03-25 15:46:42 -04:00
LGPL-3.0.txt LGPLv3, as downloaded from https://www.gnu.org/licenses/lgpl-3.0.txt 2018-03-25 15:46:42 -04:00
LICENSE Fix typo of word Houdini in LICENSE file 2018-05-29 15:22:02 -05:00
package-lock.json Audit fix 2019-11-22 15:18:27 -06:00
package.json Fixes travis build 2019-09-17 15:56:28 -05:00
postcss.config.js Relicense Javascript code in accordance with project's new license 2018-03-25 15:10:40 -04:00
Procfile Initial commit. Previous history maintained by CommitChange 2018-03-25 13:30:42 -04:00
Rakefile Initial commit. Previous history maintained by CommitChange 2018-03-25 13:30:42 -04:00
README.md Fix a typo 2019-02-14 13:53:46 -06:00
run Improve docker-compose setup 2019-01-17 11:50:55 -06:00
setupTests.js Support for grape and onboarding via react 2018-05-22 13:33:35 -05:00
swagger.json Turn on proper model property naming 2019-02-26 21:11:03 -06:00
tsconfig.jest.json Support for grape and onboarding via react 2018-05-22 13:33:35 -05:00
tsconfig.json Support for grape and onboarding via react 2018-05-22 13:33:35 -05:00
tslint.json Add a tslint config 2019-02-14 14:25:22 -06:00
Web-Template-Output-Additional-Permission.txt Paragraph reformat only; no textual change. 2018-03-25 15:48:15 -04:00
webpack.config.js Fix #54 2018-05-24 11:04:22 -05:00

Build Status

The Houdini Project is free and open source fundraising infrastructure. It includes...

  • Crowdfunding campaigns
  • Donate widget page and generator
  • Fundraising events
  • Nonprofit Profiles
  • Nonprofit payment history and payouts dashboard
  • Nonprofit recurring donation management dashboard
  • Nonprofit metrics overview / business intelligence dashboard
  • Nonprofit supporter relationship management dashboard (CRM)
  • Nonprofit org user account management
  • Simple donation management for donors

This is a Rails 3.2 app; we want to upgrade.

Much of the business logic is in /lib.

The frontend is written in a few custom frameworks, the largest of which is called Flimflam. We endeavor to migrate to React as quickly as possible to increase development comfort and speed.

All backend code and React components should be TDD.

Get involved

Houdini's success depends on you!

Join our Zulip chat

https://houdini.zulipchat.com

Help with translations

Visit the Internationalization channel on Houdini Zulip and discuss

Dev Setup

Get the code

git clone https://github.com/HoudiniProject/houdini

Docker install (if you don't have docker and docker-compose installed)

install Docker and Docker compose

You need to install Docker and Docker Compose.

  • Note: Docker and Docker Compose binaries from Docker itself are proprietary software based entirely upon free software. If you feel more comfortable, you may build them from source.

  • Note 2: For Debian, the Docker package is simply too out of date to be usable. Even the version for latest Ubuntu LTS is too old. For reliability, we strongly recommend using the Docker debian feed from docker itself OR making sure you keep your own build up to date.

Add yourself to the docker group

Adding yourself as a Docker group user as follows:

sudo usermod -aG docker $USER

You will likely need to logout and log back in again.

Build your docker-container and start it up for initial set up.

We'll keep this running in the console we'll call console 1

./dc build
./dc up

System configuration

There are a number of steps for configuring your Houdini instance for startup

Start a new console we'll call console 2.
In console 2, copy the env template to your .env file
cp .env.template .env
In console 2, run the following and copy the output to you .env file to set you DEVISE_SECRET_KEY environment variable.

./run rake secret # copy this result into your DEVISE_SECRET_KEY

In console 2, , run the following and copy the output to you .env file to set you SECRET_TOKEN environment variable.
./run rake secret # copy this result into your SECRET_TOKEN
Set the following secrets in your .env file with your Stripe account information
  • STRIPE_API_KEY with your Stripe PRIVATE key
  • STRIPE_API_PUBLIC with your Stripe PUBLIC key

If you don't, file uploads WILL NOT WORK but it's not required.

In console 2, install npm packages

./run npm install

In console 2, fill the db

./run rake db:create db:structure:load db:seed test:prepare

Set up mailer info

You can set this in config/default_organization.yml or better yet, make a copy with your own org name and add that to your .env file as ORG_NAME If you need help setting up your mailer, visit config/environment.rb where the settings schema is verified and documented.

Startup

Switch back to console 1 and run Ctrl-c to end the session.
In console 1, restart the containers

./dc up

In console 2, run:

./run npm run watch

You can go to http://localhost:5000

To get started, register your nonprofit using the "Get Started" link.

Additional info

Super admin

There is a way to set your user as a super_admin. This role lets you access any of the nonprofits on your Houdini instance. Additionally, it gives you access to the super admin control panel to search all supporters and nonprofits, which is located at /admin url.

To create the super user, go to the rails console by calling:

./dc run web rails console

In the console, run the following:

admin=User.find(1) #or the id of the user you want to add the role
role=Role.create(user:admin,name: "super_admin")

To run in production

Docker

While Docker should be very possible to use for production, the current Docker solution is optimized heavily for dev purposes. If you know more about creating a solid production Docker setup, please do contribute!

(To be continued)

  • rake assets:precompile
  • if production: make sure memcached is running.

Frontend

Assets get compiled from /client to /public/client

React Generators

If creating new React or Typescript code, please use the Rails generators with the 'react:' prefix. This include:

react:packroot

This generator creates a new entry for Webpack. This is a place where Webpack will start when packing a new javascript output file. It also creates a corresponding component for the entry. Usually, you will have one of these per page.

react:component

This generator creates a React component along with a test file for testing with Jest. Each component should have its own file.

react:lib

This generator creates a basic Typescript module along with a test file.

Providing the complete corresponding source code

Note: This is not legal advice and provides a suggestion which may be compliant. You should talk with your legal counsel if you have questions or concerns with how to comply with the various licenses of Houdini

Providing the complete, corresponding source code (CCS) of your project is a requirement of some of the licenses used by Houdini. There are two methods for doing so right now:

  1. Providing a tarball of the current running code
  2. Providing a link to Github where the code is pulled from

The easiest method is to provide a tarball. Houdini automatically provides a link on the Terms & Privacy page which generates a tarball for the current running code at runtime. For this to work though, the following characteristics must be true:

  • Your have to have committed any changes you made to the project in HEAD in your git repository
  • The .git folder for your repository must be a direct subfolder of your $RAILS_ROOT
  • Your web server must be able to run git archive.

Style

Ruby

  • 2 spaces for tabs

New frontend code

  • All new front end code should be written in Typescript and React (using TSX files). Please use the React Generators for creation.
  • 2 spaces for tabs

Legacy Javascript

  • 2 spaces for tabs
  • Comma-led lines
  • ES6 imports

Git

  • No need to rebase, just merge