Inherited an existing app called Jungle (A mini e-commerce application built with Rails 4.2) and used existing code style and approach to fix occuring bugs and implement new features.
- Run
bundle install
to install dependencies - Create
config/database.yml
by copyingconfig/database.example.yml
- Create
config/secrets.yml
by copyingconfig/secrets.example.yml
- Run
bin/rake db:reset
to 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 server
to start the server
bin/rspec
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.8 Rails Guide
- PostgreSQL 9.x
- Stripe
- When a product has 0 quantity, a sold out badge should be displayed on the product list page.
- Admin users can list and create new categories.
- Admins can add new products using the new category.
- A Visitor can go to the registration page from any page in order to create an account.
- A Visitor can can sign up for a user account with my e-mail, password, first name and last name.
- A Visitor can can sign in using my e-mail and password.
- A User can log out from any page.
- A User cannot sign up with an existing e-mail address.