Web application for HINT
If developing the backend, the easiest is to download all the required files, and the run:
docker compose -f docker-compose.dev.yml up
Once all the containers are up, run:
docker compose exec hint python manage.py makemigrations
docker compose exec hint python manage.py migrate
docker compose exec hint python manage.py load_data
docker compose restart hint
and you should be able to access hint at http://localhost
If you're developing the front-end, you need to, install node and also install Tailwind. Also, please read the htmx documentation, as HINT does not rely on React-style JavaScript frameworks. If you're attempting to change the network visualization template, please have a look at cytoscape.js's documentation
docker compose exec hint bash
npx tailwindcss -i ./base/static/css/input.css -o ./base/static/css/output.css --watch
and follow Tailwind's instructions. This needs to be done everytime the
container restarts though, so it may make more sense to rebuild the entrypoint
of the hint
service to run Django's development server rather than guinicorn.
If you don't know what this means, please read here
and here.