-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #138 from MCS-Lite/docs/update-readme
Docs(README): add detailed build procedure..
- Loading branch information
Showing
7 changed files
with
93 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# MCS Lite Application | ||
## How to Build from Source Code | ||
### Prerequisite | ||
|
||
* You must have **Node.js** version >= 6 and **npm** installed on your environment. | ||
|
||
### Steps | ||
Go to the **mcs-lite-app** folder and use the following commands in your terminal to build the packages for supported platforms: | ||
|
||
* Build web UI related projects. | ||
|
||
``` | ||
// in mcs-lite-app/client folder | ||
$ cd client && npm install && npm run build:global | ||
$ cd .. | ||
``` | ||
|
||
* Build nwjs package. | ||
|
||
``` | ||
// in mcs-lite-app folder | ||
$ npm install && npm run build:global | ||
``` | ||
|
||
* Get the mcs-lite-app packages for each platform. | ||
|
||
``` | ||
// in mcs-lite-app/out/mcs-lite-app folder | ||
$ cd ./out/mcs-lite-app | ||
``` | ||
|
||
* Launch **mcs-lite-app** executable file to run MCS Lite platform and access the Admin Console. | ||
* Open browser and go to http://localhost:3000 or http://$yourIPAddress:3000 for web console. | ||
|
||
|
||
## How to Setup Development Environment | ||
### Prerequisite | ||
|
||
* You must have **Node.js** version >= 6 and **npm** installed on your environment. | ||
* You must have **nwjs** installed on your environment. You can simply run the **install.sh** attached in the source code. | ||
|
||
### Steps | ||
* Clone this repo | ||
|
||
``` | ||
$ git clone https://github.com/MCS-Lite/mcs-lite-app.git | ||
``` | ||
|
||
* Modify the code. | ||
* Build and run RESTful server. | ||
|
||
``` | ||
$ npm install && npm run watch:global | ||
$ NODE_ENV=dev node server | ||
``` | ||
* Build web UI related packages. | ||
|
||
``` | ||
$ cd client && npm run watch:global | ||
``` | ||
|
||
If you want to build web UI related packages with unit test, you can use | ||
|
||
``` | ||
$ cd client && npm run test:watch | ||
``` | ||
|
||
* Open browser and go to `http://localhost:8081` (don't use 127.0.0.1) for web console. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.