GitHub link: https://github.com/SPMG2T7/Code
- Navigate to src/Frontend
- Run 'npm install'
- Run 'npm run serve'
- Click on the link generated once the command has been run successfully to open the index page
- Start your WAMP/MAMP, execute the prepare_script.sql
- Install the library needed for backend by running 'pip install -r requirements.txt'
- Go to src/Backend folder, run 'python app.py' to start the backend, if there are 'No Modules' error, just run 'pip install <module_name>' based on the error of module name shown
- Go to src/Backend folder, run 'docker-compose up' to start the search container
- If there is an error with MeiliSearch docker happening on first "docker-compose up", re-run the command "docker-compose up" again
!!! IMPORTANT !!!
- If you are on MacOS, please edit line 1 of src/.env and src/Backend/.env to include password e.g. DB_URL="mysql+pymysql://root:@localhost:3306/spm_g2t7"
- If you encounter an error with the search function relating to "No index 'Role' found", try to run the docker-compose down command and then run the docker-compose up command again.
- If you encounter an error called "MeilisearchCommunicationError", try to run docker compose up again. This issue arises when the docker MeiliSearch container starts slower than the flask app resulting in it referring to a non-existent container.