Giter Club home page Giter Club logo

donate.noisebridge.net's Introduction

Noisebridge-donate

CircleCI

A really simple rails application to accept credit card donations for Noisebridge

Installation

Requirements

  • PostgreSQL
  • Ruby 2.3.0
  • foreman gem install foreman

If you have rbenv and ruby-build installed you should be able to do the following

rbenv install
gem install bundler
rbenv rehash
bundle install

Running with secrets

The secrets for the development environment are kept encrypted in the .env file. git-crypt will unlock them.

NB: You must be aded to the list of secrets users before you can decrypt the .env file

If you don't have access to the decrypted .env file locally you'll likely see an error like so when you attempt to attempt to run the Rails console or server locally.

/home/patrickod/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/dotenv-2.1.1/lib/dotenv/parser.rb:44:in `split': invalid byte sequence in UTF-8 (ArgumentError)

This is because dotenv is attempting to parse a non-ASCII file (the encrypted blob). Simply rm .env to remove the local copy. If you want to run with local development Stripe API credentials for the Noisebridge account ask @patrickod to add you to the list of PGP keys that can decrypt the .env file.

To run the rails server locally with the secrets loaded use foreman start web

Running without secrets

To run the rails server locally without the secrets simply mv .env .env.foo and run as normally foreman start web. Be mindful not to commit this move to git.

Databases

This setup assumes that you have a PostgreSQL user noisebridge locally who is the owner of noisebridge_donate_development and noisebridge_donate_test databases.

donate.noisebridge.net's People

Contributors

kevin-prichard avatar morenoh149 avatar patrickod avatar robbintt avatar ruthgrace avatar tdfischer avatar

Watchers

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