Git Product home page Git Product logo

ecommerce_model's Introduction

E-Commerce Model Working Title

Epicodus Project in Ruby on Rails, December 8, 2017

By L. Devin MacKrell

Description

This is a mock website for an unspecified e-commerce store. It has basic user authentication, so that only logged in users may review products, and only administrators can create, edit, and delete products.

Installation and Setup

To install on your own machine, follow the instructions below:

  • Clone this repository.
  • Run the following commands in the project root directory:
    bundle update
    rake db:setup
    rails db:seed
    rails s
    
  • Open localhost:3000 in your web browser
  • To give an account admin privileges:
    • In the project root run rails c
    • Then run:
      User.find_by(email: "[account email address]").update(admin: true)
    • The account will now have admin access to the app.

Specifications

  • Products

    • All users may view products.
      • Users can show/hide detail page for each product from index using AJAX.
      • Product detail displays: name, price, the description, and image.
    • Users can add products to shopping cart from index page using AJAX.
      • Added items will display updated item count and cost in navbar using AJAX.
    • Users can delete items from shopping cart using AJAX.
      • The total price will be updated upon removal of each item.
    • Users will not be able to order negative quantities of products.
    • Users can sign in or sign up for an account (with flash notification of success)
    • Admin
      • CRUD functionality for products with flash confirmation.
      • Navbar links for accounts and adding products available upon admin signin.
  • Need 6 of the following:

    • X Ensure that users can't order negative number of items.
    • X Add flash messages for signing up, signing in, and signing out.
    • X Add product update and delete functionality for admins.
    • X Add admin flash messages for adding, updating, and deleting products.
    • X Add admin links to navebar so admins can easily add, update, and delete products.
    • Add integration testing for AJAX functionality.

Support and contact details

Please contact: [email protected] with questions, comments, or issues.

Technologies Used

  • Ruby
  • Rails
  • Bootstrap
  • Devise
  • Stripe
  • AJAX

License

Copyright (c) 2017 L. Devin MacKrell

This software is licensed under the MIT license.

README

E-commerce site. Uses bcrypt and materialize. There's a seed file. Set up your own admin. If you have questions, I'll be in Bali with no email. Ask someone else.

To set up:

  • rake db:setup

  • Sorry, didn't get around to tests. It mostly works. There might be a few bugs.

ecommerce_model's People

Contributors

mackless avatar

Watchers

James Cloos 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.