work diary directory contains each team member's work diary, using zID to name them (e.g. z5224890.txt), team members should update this file every week.
- Clone this repo and go to the directory
backend/filmfinder
in terminal. - Check and copy the path of python3 installed on your machine by
$ which python3
- Create a virtual environment for the project by entering
$ virtualenv your_venv -p (paste your python3 path here)
- Activate your virtual environment by
$ source bin/activate
You can deactivate your virtual environment by
(your_venv)$ deactivate
- Install Django in your activated virtual environment by
(your_venv)$ pip install django
- Install Django Rest Framework in your activated virtual environment by
(your_venv)$ pip install djangorestframework
- Install packages needed in your activated virtual environment by:
(your_venv)$ pip install Pillow
(your_venv)$ pip install simplejson
(your_venv)$ pip install django-extensions
(your_venv)$ pip install pandas
(your_venv)$ pip install -U scikit-learn
(your_venv)$ pip install numpy==1.19.2
(your_venv)$ pip install django-pandas
(your_venv)$ pip install rake-nltk
(your_venv)$ pip install funkybob
- Now you can run the server by
(your_venv)$ python3 manage.py runserver
If port 8000 (by default) is in user, you can use other port by
(your_venv)$ python3 manage.py runserver (port number)
On CSE machine:
- Clone this repo to your CSE machine and go to the directory
backend/filmfinder
in terminal. - Create a virtual environment for the project by entering
$ python3 -m venv your_venv
- Follow the step 4 to 8 above to set up Django.
- Clone this repo to your CSE machine and go to the directory ../frontend in terminal.
- Install all of the dependencies needed to run the ReactJS app
$ yarn
- Start the ReactJS app, it will automatically open your browser and load the homepage of our film finder
$ yarn start
- If you changed the port number in Django setup, please go to
../frontend/package.json
, replace the port number 8000 in line 2 with the port number you chose. For example, I chose port 8001, then line 2 will be
“proxy”: “http://localhost:8001”,
On CSE machine:
- Clone this repo to your CSE machine and go to the directory ../frontend in terminal.
- Install all of the dependencies needed to run the ReactJS app
$ npm install
- Start the ReactJS app, it will automatically open your browser and load the homepage of our film finder
$ npm start
- Follow the step 4 above.