CZ4034-Information Retrieval group project
- Follow this guide to install Node.js (>=v.16.4)
- Install the dependencies
pnpm install
- Change directory to
web/cz4034
and run
cd web/cz4034
pnpm run dev
- Change directory to
backend
and create a new virtual environment
python -m venv .venv
- Activate the virtual environment
source .venv/bin/activate
- Install dependencies
pip install flask flask-cors
- Change directory to
src
and run the flask server
flask run --debug --port=5001
- Build the docker image from the top directory
docker build -t solr_image -f solr/Dockerfile .
- Run the docker container
docker run -d --name solr_container -p 8983:8983 solr_image
- Execute the
solr/entrypoint.sh
inside the container to create a new core and post the data
docker exec solr_container /entrypoint.sh