A mini e-commerce application built with Rails 4.2 for purposes of learning Rails by project example.
- Fork & Clone
- Run
bundle installto install dependencies - Create
config/database.ymlby copyingconfig/database.example.yml - Create
config/secrets.ymlby copyingconfig/secrets.example.yml - Run
bin/rake db:resetto create, load and seed db - Create .env file based on .env.example
- Sign up for a Stripe account
- Put Stripe (test) keys into appropriate .env vars
- Run
bin/rails s -b 0.0.0.0to start the server
Use Credit Card # 4111 1111 1111 1111 for testing success scenarios.
More information in their docs: https://stripe.com/docs/testing#cards
- Rails 4.2 Rails Guide
- PostgreSQL 9.x
- Stripe
MailCatcher runs a super simple SMTP server which catches any message sent to it to display in a web interface.
Please don't put mailcatcher into your Gemfile. It will conflict with your applications gems at some point.
Instead, pop a note in your README stating you use mailcatcher. Simply run gem install mailcatcher then mailcatcher to get started.
More information https://mailcatcher.me
On a Vagrant Ubuntu VM it works by :
adding a port forwarding in Vagrantfile
=> config.vm.network :forwarded_port, host: 1080, guest: 1080
launching mailcatcher
=> mailcatcher --ip=0.0.0.0 - remark: Do not set only http with command mailcatcher --http-ip=0.0.0.0
More information sj26/mailcatcher#89

