Contributing¶
Getting started¶
Clone the repository using
git clone https://github.com/stephanzwicknagl/viasp.git
Create and activate a conda environment
Install pip
conda install pip
Install viASP in editable mode
pip install -e viasp -e viasp/backend -e viasp/frontend
Developing the backend¶
Simply edit the code in the backend folder
viasp/backend/src
Run viASP with a clingo program
viasp encoding.lp
Developing the frontend¶
Move to frontend folder
cd viasp/frontend
Run
npm i
to install all needed dependenciesRun
npm run start
to continuously pack the javascriptRun a modified viASP App to see changes on the frontend immediately
python DevApp.py 0 encoding.lp
Note
The JavaScript and CSS files are located at /frontend/src/lib
. The frontend code needs to be packed before changes become visible to the webpage.
Code your heart out!