You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MACC is a backend platform for the Peace Corps mobile applications - Malaria and FirstAide. The Mobile App Control Center allows the volunteers at Peace Corps HQ to send or edit any information in their mobile applications through a set of APIs.
3
3
4
-
If you already had the server installed, it is advised that you delete the current database to remove errors related to the model fields updates. this can be done by running the following command:
5
-
6
-
`python manage.py flush`
7
4
8
5
#On Malaria App
9
6
MACC works on Malaria Prevention application as infoHub, a portal where posts can be added and notified to the mobile app users(volunteers). Posts on infoHub mainly focus on malaria prevention tips and malaria awareness.
@@ -13,5 +10,7 @@ MACC works on PCSA mobile and web apps, MACC makes the mobile apps fully dynamic
10.[Generate Database Tables Corresponding to Django Models](https://github.com/systers/app-web-server/blob/develop/docs/Installation%20Guide.md#generate-database-tables-corresponding-to-django-models)
17
-
11.[Run Development Server](https://github.com/systers/app-web-server/blob/develop/docs/Installation%20Guide.md#run-development-server)
18
-
12.[Try out Mobile App Control Center](https://github.com/systers/app-web-server/blob/develop/docs/Installation%20Guide.md#try-out-mobile-app-control-center)
19
-
13.[Exit the Virtual Machine](https://github.com/systers/app-web-server/blob/develop/docs/Installation%20Guide.md#exit-the-virtual-machine)
If you are installing and running the project on your local machine and not on the PeaceCorps VM, then you will need to download and install the following software:
Skip the next two sections if not using the PeaceCorps VM and jump to the section '**Install Project Dependencies**'.
@@ -57,7 +57,7 @@ Install VirtualBox and Vagrant by running the installers.
57
57
58
58
## Download PeaceCorps Ubuntu Virtual Machine
59
59
60
-
A Vagrant file is located in the top level directory for the project (at [https://github.com/systers/app-web-server/blob/develop/Vagrantfile](https://github.com/systers/app-web-server/blob/develop/Vagrantfile) found on GitHub. In case you do not have a copy of this Vagrant file, here are it's contents:
60
+
A Vagrant file is located in the [top level directory for the project.](https://github.com/systers/macc/blob/develop/Vagrantfile) found on GitHub. In case you do not have a copy of this Vagrant file, here are it's contents:
61
61
```
62
62
# -*- mode: ruby -*-
63
63
# vi: set ft=ruby :
@@ -283,6 +283,12 @@ Username: admin
283
283
Email: your email
284
284
Password: mypassword
285
285
```
286
+
287
+
If the models are updated in any way, you need to delete the database and then migrating the fields once more. This can be done by:
288
+
289
+
python manage.py flush
290
+
python manage.py syncdb
291
+
286
292
Check that the tables were created by starting the postgres client and viewing the tables using the `\dt` command.
287
293
```
288
294
psql -U myuser -d webapp -h localhost -W
@@ -324,7 +330,6 @@ Location: Your location
324
330
Phone: Your phone number
325
331
Gender: Your gender
326
332
Reset pass: 1 (not sure what this field does)
327
-
Imageobj: Pick any random image from your computer
0 commit comments