Please file issues for this repository and Web site at the ga4gh/dockstore repository!
This project was generated with Angular CLI version 1.0.0-rc.4.
Angular CLI requires Node 6.9.0 or higher, together with NPM 3 or higher. Then make sure Angular CLI has been properly set up.
$curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
$sudo apt-get install -y nodejs
$nodejs -v
v7.10.0
$npm -v
4.2.0
$sudo npm install -g @angular/cli@1.3.1
After cloning the repo from GitHub, you can install the npm packages.
git clone https://github.com/dockstore/dockstore-ui2.git
cd dockstore-ui2
git checkout develop
git pull
npm install
Check to make sure Angular CLI has been properly set up
$ ng -v
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
@angular/cli: 1.3.1
node: 7.9.0
os: linux x64
@angular/animations: 4.3.6
@angular/common: 4.3.6
@angular/compiler: 4.3.6
@angular/core: 4.3.6
@angular/flex-layout: 2.0.0-beta.9
@angular/forms: 4.3.6
@angular/http: 4.3.6
@angular/platform-browser: 4.3.6
@angular/platform-browser-dynamic: 4.3.6
@angular/router: 4.3.6
@angular/cli: 1.3.1
@angular/compiler-cli: 4.3.6
@angular/language-service: 4.3.6
If you wish to serve the dist folder in a VM, make sure you have nginx and security rules set up properly. Nginx
You will need to generate the Dockstore client classes (version numbers may change frequently). Look at the setup in the travis.yml
The Dockstore class in dockstore-ui2/src/app/shared/dockstore.model.ts
is for integrating supported services.
In dockstore-webservice
, the dockstore.yml
being served must be edited to include the client IDs.
Run npm run-script prebuild
before running or building the project. This command will automatically generate a file which contains the UI tag version.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files. Run ng serve --host 0.0.0.0
in order to serve your site to other computers on the same network.
Run npm shrinkwrap
. Note that due to a problem with angular-tag-cloud, you will need to manually edit its dependencies in the file node_modules/angular-tag-cloud-module/package.json .
Change its peer dependency to 4.3.6.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive/pipe/service/class/module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the -prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via ng serve
.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.