The lead developer of this e-commerce site quit abruptly and moved to Bali. The goal of this project was to add AJAX to the site and refactor it.
- Add and delete items from cart using AJAX.
- Show and hide product details with AJAX.
- Add a validation for quantity in order_item.rb
- Add product validations.
- Add image property to products.
- Add flash messages for signing in and out.
- Add stripe so users can pay with a credit card.
- Add ability to create, update, and destroy products for admins.
- Add flash messages for creating, updating, and destroying products.
- Allow products to be created with non-whole dollar amounts.
- Remove turbolinks.
- Add testing, stripe, bootstrap, and admin gems.
- Add unit testing.
- Add interface for admins to manage data.
Uses bcrypt
and materialize
.
Run the following commands in Terminal:
$ git clone
this repository$ cd bali_refactor
$ bundle
$ rails:db:create
$ rails:db:migrate
$ rails:db:test:prepare
$ rails:db:seed
$ rails s
- Navigate to localhost:3000
To use Stripe for credit card payment:
- Visit Stripe
- Login or create an account to get your API keys.
- Paste the following text in the .env file and add your own API keys:
PUBLISHABLE_KEY=your key here
SECRET_KEY=your key here
- The product update and delete functionality has not been tested.
If you have questions, comments, or concerns, please contact Margaret. Feel free to make a contribution to the code.
- Ruby-on-Rails
- ActiveRecord
- AJAX
This software is licensed under the MIT license.
Copyright (c) 2017 Margaret Berry