Giter VIP home page Giter VIP logo

warehouse's Introduction

warehouse

eCommerce is simple and feature rich, cloud based point-of-sales are getting there, with warehouse we hope to bridge the last remaining gap in the retail lifecycle

Gitterxczxc

Development

Please follow the Git-Flow Branching model when working with this repo.

In order to hack on this you'll need a few things installed and setup first:

Install These:

* [NodeJS] (http://nodejs.org)
  * __Recommended:__ Use [nvm](https://github.com/creationix/nvm) so you can have multiple NodeJS versions.
* [Ruby](https://www.ruby-lang.org/en/)
  * __Recommended:__ Use [rvm](http://rvm.io/) so you can have multiple versions of ruby and gemsets.
* [Compass](http://compass-style.org/install/) gem.
  * __IMPORTANT:__ As of 2/24/14 you need to install the latest alpha of compass or it won't work (It loads a bad dependency on sass). `sudo gem install compass --pre`
* [Yeoman](http://yeoman.io)

Clone it and then:

cd ~/dev/
git clone https://github.com/ShoppinPal/warehouse.git warehouse
cd warehouse
nvm install v0.10.37
nvm use v0.10.37
gem install compass --no-ri --no-rdoc
npm install -g yo
npm install
npm install -g bower
bower install
npm install grunt-contrib-compass --save-dev

Setup a server/config.development.json file

{
  "restApiRoot": "/api",
  "host": "0.0.0.0",
  "port": 3000,
  "aclErrorStatus": 403,
  "site": {
    "baseUrl": "http://localhost:3000",
    "proxyUrl": ""
  },
  "logging": {
    "console": true,
    "file": false
  },
  "prestashop":{
    "apiKey":""
  },
  "vend":{
    "auth_endpoint":"https://secure.vendhq.com/connect",
    "token_service":".vendhq.com/api/1.0/token",
    "client_id":"<fill it in>",
    "client_secret":"<fill it in>"
  }
}

For developing dependencies alongside:

cd ~/dev/
git clone https://github.com/ShoppinPal/vend-nodejs-sdk.git vend-nodejs-sdk
cd vend-nodejs-sdk
npm install
npm link
cd ~/dev/warehouse/
npm link vend-nodejs-sdk

Testing

  • Unit tests: grunt test
  • End-to-End Tests:
    • Setup:
      • npm install --unsafe-perm
      • cd test/utils
      • npm install
      • cd ../..
    • One Specific Test:
      • grunt test:e2e --specs='test/protractor/e2eTest1.js'
      • grunt test:e2e --specs='test/protractor/e2eTest2.js'
    • Multiple Tests
    • grunt test:e2e --specs='test/protractor/e2eTest1.js,e2eTest2.js'
    • All Tests
    • grunt test:e2e

Front-End

AngularJS is used as the client-side framework for this app and Bootstrap is used for the styling.

Back-End

The api is hosted by Loopback server (superset of Express) running on NodeJS.

Workflow

This project is setup with Grunt tasks to make development and deployment easy.

Server

Launch your loopback server in development mode.

grunt server:development --subdomain <subdomain>
DEBUG=shoppinpal:*,boot:create-model-instances,boot:create-role-resolver grunt server:development --subdomain <subdomain>

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.