Fourth Meal is the step after the Dinner Dash Project Dinner Dash The original tutorial was created by Jumpstart Lab. Fourth Meal Fourth Meal focuses on taking another group's code, refactoring it and making it applicable for multiple restaurants.
###Craveyard Production site link
#####Setting Up Locally
- Clone the repository. `https://github.com/pzula/fourth_meal.git'
- Move into that directory.
- Install gem dependencies.
- Make sure you have Postgres installed on your computer. We recommend either installing it through the Postgres.app or Homebrew
- Create and seed the database.
rake db:create db:seed
- Start the Rails sever.
To Run RSPEC
# Run all specs bundle exec rspec # Run only model specs bundle exec rspec spec/models
To purge the test database - run
Amazon AWS S3 Bucket for images
To integrate the Paperclip gem with image upload on Heroku, we use an AWS S3 bucket to store our images.
You will need to create a bucket (free) on S3, and then export the following keys to your environment:
Stripe for Payment integration
To integrate credit card payments, we used Stripe. In order for your local copy to process payments correctly, you will
need to sign up for a free Stripe account, visit your account settings, and export the following API keys to your environment:
SendGrid for ActionMailer integration
To integrate email on account creation and payment success, we use the SendGrid API.
In order for this to function correctly, you must create a SendGrid account, and set your environment variables with the following:
We used Pivotal Tracker in order to structure our project. We wrote user stories that we converted into tests, using BDD with RSpec and Capybara in order to drive development.
####Extraction of External Services
We extracted Stripe into its own model, and switch to the development processor in our development and testing environments in order to speed up the development process.