luiswitz / ecommerce-prototype

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ecommerce Prototype

This project is a concept of an ecommerce.

It has just basic functionality like:

  • create orders
  • add products to the order
  • remove products from the order
  • edit products from the order

Every time an order is finished, another one is created and the shopping starts at the beginning again.

Setup

To get the project up and running, follow this steps:

Build docker image

docker-compose build

Create database

docker-compose run --rm app bundle exec rails db:create

Run migrations

docker-compose run --rm app bundle exec rails db:migrate

Fill database with data

docker-compose run --rm app bundle exec rails db:seed

Run project

docker-compose up

Running tests

In order to run the tests, execute the following command

docker-compose run --rm app bundle exec rspec

About


Languages

Language:Ruby 80.0%Language:HTML 16.5%Language:JavaScript 1.6%Language:CSS 1.3%Language:Dockerfile 0.4%Language:CoffeeScript 0.3%