npm install
npm run serve
Go to http://localhost:8080/
pip install -r requirements.txt
cd api
python app.py
Go to http://localhost:5000/
To speed up the backend we currently have file system caching implemented. This makes sure that anything already computed is retrieved from the cache
folder and not computed again
- results will be cached forever in the filesystem unless cleared
- to clear the cache run
python clear_cache.py
in theapi
folder - to clear the cache on the server see these instructions
- Run
npm run build
- If you added any Python dependencies for the api run
pip freeze > requirements.txt
from the root of the project - Commit and push your changes (including the
dist
folder andrequirements.txt
) - Submit a pull request to the main brain
- To make changes live at https://interactiveart.web.illinois.edu those with cPanel access need to follow these steps
- When running the frontend locally, requests are automatically proxied to the backend running locally (see above)
- Once deployed, the frontend automatically makes requests to https://backend.interactiveart.web.illinois.edu as specified in the
.env
file