/ozp-center

OZONE Platform Center UI

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Interested in becoming a contributor?

Fork the code for this repository. Make your changes and submit a pull request. The Ozone team will review your pull request and evaluate if it should be part of the project. For more information on the patch process please review the Patch Process at https://ozone.nextcentury.com/patch_process.

Center UI [![Build Status][travis-image]][travis-url]

Center UI built on React, Gulp and Webpack.

Prerequisites

Install Node.js and npm. Head over to the Node.js website if you need to do that. Next, install Gulp, you might need to run them as sudo.

npm install -g gulp

Setup

First clone the repo. Install module dependencies.

git clone https://github.com/ozoneplatform/ozp-center.git
cd ozp-center
npm install

Next, run npm start or gulp dev. Go to http://localhost:8000/webpack-dev-server/dist and browser will automatically reload when any file in /app changes. Alternatively, you can also go to http://localhost:8000/dist, if auto reload is undesirable. You can specify API URL by running API_URL="{API_URL}" npm start

Available tasks

See scripts key in package.json for all options.

  • npm start implements an http server and a live reload server.
  • npm run build generates production build at ./dist directory with minified versions of JS and CSS. Contents of ./dist directory can then be copied to a web server.
  • npm run deployGhPages runs a build with demo configs and deploys ./dist to github pages.