Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 1.77 KB

README.md

File metadata and controls

52 lines (38 loc) · 1.77 KB

sn-rest-portal

Simple and modular REST Portal Example

Building The Code

First of all, clone the complete repository to your local machine.

To build the code, follow these steps.

  1. Ensure that NodeJS is installed. This provides the platform on which the build tooling runs.
  2. From the project folder, execute the following command:
npm install
  1. Ensure that Gulp is installed. If you need to install it, use the following command:
npm install -g gulp
  1. Ensure that jspm is installed. If you need to install it, use the following command:
npm install -g jspm

Note: jspm queries GitHub to install semver packages, but GitHub has a rate limit on anonymous API requests. It is advised that you configure jspm with your GitHub credentials in order to avoid problems. You can do this by executing jspm endpoint config github and following the prompts.

  1. Install the client-side dependencies with jspm:
jspm install

Note: Windows users, if you experience an error of "unknown command unzip" you can solve this problem by doing npm install -g unzip and then re-running jspm install.

  1. To build the code, you can now run:
gulp build

Running The Tests

To run the unit tests, first ensure that you have followed the steps above in order to install all dependencies and successfully build the project. Once you have done that, proceed with the following steps.

  1. Ensure that the Karma CLI is installed. If you need to install it, use the following command:
npm install -g karma-cli
  1. You can now run the tests with this command:
karma start