|
@@ -38,7 +38,7 @@ The goal is to help students organize themselves, practice their enrollments and
|
38
|
38
|
# Below are the steps to run the application
|
39
|
39
|
|
40
|
40
|
### Step 1: Download repository
|
41
|
|
-- Download the repository from this url: https://git.ccom.uprrp.edu/CCOM4030/companion_app/src/branch/master
|
|
41
|
+- Download the repository from this url: **https://git.ccom.uprrp.edu/CCOM4030/companion_app/src/branch/master**
|
42
|
42
|
|
43
|
43
|
|
44
|
44
|
### Step 2: Go to the server directory and run in your terminal
|
|
@@ -52,7 +52,7 @@ The goal is to help students organize themselves, practice their enrollments and
|
52
|
52
|
|
53
|
53
|
### Step 4: change directories in files
|
54
|
54
|
- Go to **organizar/organizar.py** and change the paths in lines 4, 5 and 6 to your path
|
55
|
|
-Go to **server/CompanionApp/views.py** and change paths in lines 3, 54 and 101 to your path. **NOTE: in line 54 you need to change 2 paths**
|
|
55
|
+- Go to **server/CompanionApp/views.py** and change paths in lines 3, 54 and 101 to your path. **NOTE: in line 54 you need to change 2 paths**
|
56
|
56
|
|
57
|
57
|
|
58
|
58
|
### Step 5: make migrations of django project
|
|
@@ -98,7 +98,7 @@ Go to **server/CompanionApp/views.py** and change paths in lines 3, 54 and 101 t
|
98
|
98
|
### Step 10: create a social application
|
99
|
99
|
- Go to **server** directory in the terminal and type ‘**python manage.py runserver**’
|
100
|
100
|
- Then, go this url ‘**http://127.0.0.1:8000/admin**’ and login as admin.
|
101
|
|
-- Once logged in, go to the bottom of the page and click on ‘Social applications’ and then click on ‘ADD SOCIAL APPLICATION’
|
|
101
|
+- Once logged in, go to the bottom of the page and click on ‘**Social applications**’ and then click on ‘**ADD SOCIAL APPLICATION**’
|
102
|
102
|
- Provider: **Google**
|
103
|
103
|
- Name: **Google Login**
|
104
|
104
|
- Client id: **116415331974-tf6sehooctplmmn7j0gt831mdf1oqipl.apps.googleusercontent.com**
|
|
@@ -114,7 +114,7 @@ Go to **server/CompanionApp/views.py** and change paths in lines 3, 54 and 101 t
|
114
|
114
|
- This will return a list of your sites [‘example.com’, ‘localhost:8000’]
|
115
|
115
|
- Step 3 will be the tricky part
|
116
|
116
|
- Run in your terminal: **Site.objects.get(id=1)**
|
117
|
|
- - If you get an error you will need to run the same command above, but adding one to id. You will continue to do this until you get a return value of localhost:8000. Example: **Site.objects.get(id=2)**, **Site.objects.get(id=3)**, **Site.objects.get(id=4)**... My guess is that your value will be where id is between 4 and 7
|
|
117
|
+ - If you get an error you will need to run the same command above, but adding one to id. You will continue to do this until you get a return value of **localhost:8000**. Example: **Site.objects.get(id=2)**, **Site.objects.get(id=3)**, **Site.objects.get(id=4)**... My guess is that your value will be where id is between 4 and 7
|
118
|
118
|
- **Enter: ‘quit()’ in the shell**
|
119
|
119
|
- Once you get your site id, go to **server/restful/settings.py**
|
120
|
120
|
- In settings.py go to line 76 and change the value from **SITE_ID** to your value and save the file
|
|
@@ -152,7 +152,8 @@ Go to **server/CompanionApp/views.py** and change paths in lines 3, 54 and 101 t
|
152
|
152
|
### Step 14: run the app
|
153
|
153
|
- Open a terminal and go to the **client** directory and in your terminal and type ‘**npm start**’. After running successfully go to this url **http://localhost:19002**
|
154
|
154
|
- Open another terminal and go to the server directory and type ‘**python manage.py runserver**’
|
155
|
|
-- Use your phone to scan the qr code from expo and use CompanionApp
|
|
155
|
+- Use your phone to scan the qr code from expo and use CompanionApp.
|
|
156
|
+- **It is mandatory that your phone uses the same wifi that your local computer is using**
|
156
|
157
|
|
157
|
158
|
|
158
|
159
|
# ADDITIONAL NOTES:
|