forked from lineupjs/lineupjs
-
Notifications
You must be signed in to change notification settings - Fork 4
Setup a Development Workspace
Holger Stitz edited this page Dec 13, 2016
·
3 revisions
Please follow the workspace setup if you want to develop and contribute to LineUp.js.
Install Node.js, Yeoman and the Phovea Generator.
- Create an empty workspace directory:
mkdir lineup_workspace && cd lineup_workspace
- Clone repositories
- Clone LineUp repository:
git clone -b release_1.x https://github.com/Caleydo/lineup.js.git
(Note: make sure to check out LineUp >= 1.x) - Clone the demo page:
git clone https://github.com/sgratzl/lineup_demos_source.git
- (Optional) If you want to modify check other plugins (e.g, phovea_importer) clone them, too:
git clone https://github.com/phovea/phovea_importer.git
- Create workspace:
yo phovea:workspace
with the following inputs:
- Virtual Environment: none
- Additional Plugins: none (just press Enter)
- Install dependencies:
npm install
- Creating a symbolic link for the LineUp library
- Remove directory node_modules/lineupjs and ...
- Create symbolic link instead
* On Windows:
mklink /J "node_modules/lineupjs" "lineup.js"
* On Linux/Mac:ln –s "lineup.js" "node_modules/lineupjs"
- Open command line in your workspace directory
- Run
npm run start:lineup_demos_source
- Open web browser with the URL (e.g. localhost:8080) printed in the console output