-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathreadme.txt
92 lines (60 loc) · 3.29 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
Submission:
We have submitted NearestNeighborsFinalSoftwareQuality.zip on time.
The link to the submitted file on GitHub is:
https://github.com/unsw-cse-capstone-project/capstone-project-comp9900-w15a-nearestneighbors/blob/master/NearestNeighborsFinalSoftwareQuality.zip
Information of our submission commit:
commit 2b31f4905550cc574d60d5d961580e11275f233b
Author: xxicypatxx <[email protected]>
Date: Mon Nov 16 23:17:30 2020 +1100
--------------------------------------------------------------------------
Django Setup
1. Clone this repo and go to the directory backend/filmfinder in terminal.
2. Check and copy the path of python3 installed on your machine by
$ which python3
3. Create a virtual environment for the project by entering
$ virtualenv your_venv -p (paste your python3 path here)
4. Activate your virtual environment by
$ source bin/activate
You can deactivate your virtual environment by
(your_venv)$ deactivate
5. Install Django in your activated virtual environment by
(your_venv)$ pip install django
6. Install Django Rest Framework in your activated virtual environment by
(your_venv)$ pip install djangorestframework
7. 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
8. 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)
--------------------------------------------------------------------------
Django Setup on CSE machine:
1. Clone this repo to your CSE machine and go to the directory backend/filmfinder in terminal.
2. Create a virtual environment for the project by entering
$ python3 -m venv your_venv
3. Follow the step 4 to 8 above to set up Django.
--------------------------------------------------------------------------
Frontend Setup:
1. Clone this repo to your CSE machine and go to the directory ../frontend in terminal.
2. Install all of the dependencies needed to run the ReactJS app
$ yarn
3. Start the ReactJS app, it will automatically open your browser and load the homepage of our film finder
$ yarn start
4. 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”,
--------------------------------------------------------------------------
Frontend Setup on CSE machine:
1. Clone this repo to your CSE machine and go to the directory ../frontend in terminal.
2. Install all of the dependencies needed to run the ReactJS app
$ npm install
3. Start the ReactJS app, it will automatically open your browser and load the homepage of our film finder
$ npm start
4. Follow the step 4 above.