Giter VIP home page Giter VIP logo

ecommerce_store's Introduction

Ecommerce_store

Description

An e-commerce store that sells a variety of products using server side framework Ruby on Rails.

Home Page Category Page

Functionalities

  • Separates 'user' role for 'admins'.
    • Admin manages the products inventory, view orders, categories/subcategories and user's information on customers.
  • Categories can be dynamically created by the admin (i.e. Science Fiction), and all products should be assigned to a category.
  • Separate 'user' role for 'customers'.
    • Customers can purchase items only if they are registered users and are able to track status of their orders.
  • Follows a standard practice for a shopping cart, and have appropriate search (using Solr) and filters on product pages (i.e. by category, by price).
  • Able to create and manage the status of your orders.
  • Uses devise power gem to manage user authentication.
  • Follows a very easy to navigate interface. (Bootstrap for front-end).

Instructions to execute code

Production

Development

  • Clone the repository from Github.
  • Open a terminal, go to your proyect's directory and run bundle install --> Install all your dependencies gems.
  • Must run this command rails db:create, rails db:migrate to run db migrations.
  • Later you must run:
  • rails s for the application to work on "localhost:3000".
  • We must run the sunspot Solr server locally to be able to have search functionality. RAILS_ENV=development bundle exec rake sunspot:solr:start.

Rspec

  • Make sure all testing specs are green.
    • Run the command RAILS_ENV=test bundle exec rake sunspot:solr:start. To start Solr server on testing environment. (This will create the write.lock file on Solr directory).

    • Run specs bundle exec rspec spec.

Entity Model

What's next!

  • Incorportate Twillio Authy for 2-factor authentication during a purchase.
  • Refactor to make code DRY.

ecommerce_store's People

Contributors

yannycastrillon avatar

Watchers

 avatar  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.