Installation
Installation is a simple process mostly involving installing node dependencies.
Clone the repository
Info
Access to the repository will remain private for the time being. If you would like to request access, see: Contributing
Clone the repo and cd into the new directory:
$ git clone https://github.com/icpcs/icos-beta
$ cd icos-beta
Install node dependencies
First, let's install the base node modules:
$ npm install
Next, we need to install node dependencies for all submodules. To save time, we can accomplish this with a simple bash script included in the root directory:
$ cat install_submodules.sh
#!/bin/bash
echo "Installing node dependencies for submodules..."
for submodule in ./src/osjs*;
do
cd $submodule;
echo "Installing node dependencies for submodule $submodule..."
npm install
cd ../../
done
$ bash ./install_submodules.sh
Allow a few minutes for all the node modules to be installed. Next, we will repeat this process for the packages (ICOS apps):
$ bash ./install_packages.sh
Build from source
This step is largely the same as the previous one - run the included scripts to build all submodules and packages:
$ bash ./build_submodules.sh
$ bash ./build_packages.sh
Next, scan for the submodules and packages we just built:
$ npm run package:discover -- --copy
Finally, build the final assets to be used for deployment:
$ npm run build