Giter Site home page Giter Site logo

motiposters's Introduction

MotiPosters

This application is written in Ruby 1.9.3 and uses the Rails 4 framework.

Database Configuration

The database used by this application is PostgreSQL. If your postgreSQL database has a username and password, add the following environment variables:

  • PG_USER - environment variable containing your PostgreSQL username
  • PG_PASS - environment variable containing you PostgreSQL password

(If you do not have a username and password you do not need to set up these environment variables.)

Stripe Payment Processing

This application uses the Stripe payment system and requires the set up of two environment variables

  • STRIPE_PUBLISHABLE_KEY - environment variable containing your stripe publishable key (available from Stripe)
  • STRIPE_SECRET_KEY - environment variable containing your stripe secret key (available from Stripe)

Mail Configuration

The project uses ActionMailer smtp to notify users of their orders. You need to configure your own email address from which emails will be sent. It is suggested that you use a gmail account, and enter the appropriate gmail pass code in an environment variable, which is used by this application:

  • MOTIPOSTER_GMAIL_PASS

If you wish to configure ActionMailer differently, adjust the appropriate settings in the development.rb, production.rb and test.rb.

Paperclip and image uploading

The project uses paperclip which requires the installation of imagemagick (http://www.imagemagick.org/script/index.php). If using Mac OSX and homebrew install with the following command:

brew install ImageMagick

Test

The 'test' environment paperclip is configured to just put and retrieve images from the 'public/images/products' directory.

Development

In the 'development' environment paperclip is configured to put and retrieve images in a nested directory structure within the 'public/images/products' directory.

Production

In the 'production' environment paperclip is configured to stored images in and retrieve images from a nested directory on amazon s3. Production environment requires the set up of the following environment variables.

  • S3_MOTIPOSTER_SECRET_KEY_ID - environment variable containing your Amazon S3 access_key_id
  • S3_MOTIPOSTER_SECRET_ACCESS_KEY - environment variable containing your Amazon S3 secret_access_key

Run the test suite in the command line by entering rspec

motiposters's People

Contributors

charlottec24 avatar dariodaprile avatar jameslieu avatar neilos avatar shadchnev avatar tboeckmann avatar tomleman avatar tomwisniewski 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.