boddhisattva / product-listing

A sample product listing app using AngularJS and Rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Product Listing

Test Coverage


About

This is a sample product listing app built using AngularJS on the client side and a Rails API in the backend. With this app one can -

  • Perform basic CRUD operations with respect to a product

One can try using the app wrt the work done so far on this link

Usage

Dependencies

  1. Ruby 2.2.2
  2. Rails 4.0.6
  3. Angular JS 1.2.19
  4. PostgreSQL 9.4.1
  5. For other dependecies, please check the Gemfile

Setup

Development

  1. Clone the repo, and cd into the same
  2. Run -
  3. bundle install
  4. cp config/database.yml.example config/database.yml
  5. rake db:create
  6. rake db:migrate

Test

  1. From the project root directory run -
  2. rake db:migrate RAILS_ENV=test(this step assumes you've run rake db:create already)

Get the app up and running

Development

  1. From the project root directory run -
  2. rails s to kickstart your app web server
  3. Navigate to http://localhost:3000 in your browser

Running your specs

  1. From the project root directory -
  2. Use bundle exec rspec to run all your specs

About

A sample product listing app using AngularJS and Rails


Languages

Language:Ruby 79.5%Language:HTML 16.8%Language:CSS 2.1%Language:JavaScript 1.6%