Code Monkey home page Code Monkey logo

sendo's Introduction

Sendo Build Status

Sendo is an open source Node.js ecommerce platform. It is developed with MongoDB, Express and Angular.

##Requirements Sendo requires the following software to be installed:

  • Node (version 0.10 or later)
  • MongoDB (version 3.6.7 or later)

Setup Local Development Environment

Unit Tests & Integration Tests

Our unit tests covered both client and server sides. Also, there are integration tests to cover server side api (file extension .integration.spec.js)

  • Karma is used for the client side unit testing
  • Mocha is used for the server side unit testing

To run client side unit tests

	grunt test:client

Note: If you would like to use Webstorm with Karma Plugin, make sure set the environment variable NODE_ENV to test

To run server side unit tests and integration tests

	grunt test:server

Note: If you would like to use Webstorm with Mocha Plugin, make sure set the environment variable NODE_ENV to test

The following command is to run both client/server unit tests and integration tests

	grunt test

End-to-End Tests

To setup e2e testing, you will need to update your Chrome binary path of the protractor.conf.js

    ...
    "chromeOptions": {
      binary: "<your chrome binary path>",
      ...
    }

To run End-to-End Tests

	grunt test:e2e

Note: If you would like to use Webstorm for e2e test, please follow the following instructions:

  1. set "Javascript files" to node_modules/grunt-protractor-runner/node_modules/protractor/lib/cli.js and
  2. set "Application Parameters" to protractor.intellij.conf.js

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.