Coder Social home page Coder Social logo

edwinramirez / super_shoes Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 1.16 MB

A back-end application exposing REST services and an admin mini site for a shoe store. The purpose of this app was to be tested by the fine people at Growth Acceleration Partners.

Ruby 74.05% JavaScript 2.06% CoffeeScript 1.14% CSS 4.05% HTML 18.69%

super_shoes's Introduction

super_shoes

Synopsis

Super shoes is a back-end application exposing REST services and an admin mini site for a shoe store. The purpose of this app was to be tested by the fine people at Growth Acceleration Partners.

What does this app do?

This app features CRUD for managing two DB tables: Stores and Articles. It also exposes three REST services that list data from these tables. These REST services are protected by Basic HTTP Authentication.

Usage

The admin mini site is very easy to navigate through. From http://localhost:3000/ you'll access the Main menu. From there CRUD management views for Stores and Articles are accesible.

REST services are exposed as listed below:

Installation

Prerequisites

  • Developed with Ruby v.2.2.3
  • Rails 4.2.6
  • MySQL 5.5.x

Setup

  • Download to your machine.
  • Run rake db:setup. Or if you prefer, rake db:create, db:migrate, and db:seed individually.
  • Make sure you run rake db:seed RAILS_ENV=test because we need that seed data in our test database for Capybara testing purposes.
  • Start your Rails server and open up http://localhost:3000/ in your browser. Change your port accordingly.
  • RSPEC tests are located in the following directories:
    • /spec/controllers/stores_controller_spec.rb (REST service testing)
    • /spec/features/articles_spec.rb (Capybara test for adding articles belonging to a store)
    • /spec/features/stores_spec.rb (Capybara test for adding stores)
    • /spec/models/store_spec.rb (Form validation testing)

super_shoes's People

Contributors

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