[English follows] Ceci est une copie avec modification des composantes principales du code Dash. Les modifications sont pour rencontrer les normes web du gouvernement du Canada. Dash est utilisé pour les micro application Alouette et SCISAT. Pour en savoir plus, voir le code original.
[Le Français précède]
This is a modified copy of the main components of the Dash code. The changes are to meet Government of Canada web standards. Dash code is used for the Alouette and SCISAT microapplication. For more information, see the original code.
To install the library follow the following steps:
- Clone or download the repository to a location of your choice.
- In terminal, enter the repository
cd {Path to your chosen install location}/dash-core-components
- Create a python virtual environment, for this guide we will use
venv
- Install 'venv' if you don't have it
sudo apt-get install python3-venv
- Create the environment
sudo python3 -m venv venv
- Install 'venv' if you don't have it
- Enter the virtual environment
. venv/bin/activate
- Install the development requirements for python
sudo pip install dash[dev,testing]
- Install the nodejs packages and run the node build script
npm i --ignore-scripts && npm run build
- You should get this as the finial line of output if the build was successful
ES-Check: there were no ES version matching errors! 🎉
Once you have built the elements the generated python packs will be in the dash-core-components
folder. You can copy this entire directory into the python environment used for CKAN. If prompted to replace the existing directory select or enter yes.