Android app to create and view reports useful for citizens.
Project made with Apache Cordova and connection to APIs via AJAX (require keys). It was made based on the organizations and their phone numbers in Reynosa, Tamaulipas, Mexico (so all the app content is in Spanish).
-
πΊ User accounts: To access the report functionalities it is necessary to have an active user account, these are created with a username, email, and password.
-
π¨ Emergencies: In case of an emergency, it is possible to access quickly to the emergency interface to start a call with the correspondent organization.
-
π Reports: The main point of the app are reports of critical situations around the city. Here are some point covered about them in the app.
-
π« Creation: To create a report is necessary to provide with information about it based on the specific type of situation (a water leak, an electricity outage, a fire, or other). It is also essentially the selection of the problem location in an interactive map. After creating successfully the report the user is redirected to, if possible, a chat with the corresponding organization, with a prefilled message with all the information.
-
π History: It is possible to visualize all the reports made by the user before, modify them, delete them, and to resend a message to the organization to know the current status of the issue (then the user can update the report to make everyone know that new status).
-
π Map: One of the first screens is where a big map is shown with all the reports made by all the community. Each report is marked as a circle with certain symbology based on the type of report. When one of them is clicked, the basic information about is shown.
-
π Browser: In the same map mentioned before is available the functionality to filter all the reports based on certain characteristics, as the type of report, time of creation and current status.
-
The app-aguas.apk file is available in the latest release for installation in Android devices (in version 12+).
To start with the installation is required to have Node.js, Cordova CLI and Android SDK available in the machine.
- Clone the repository files.
git clone https://github.com/IzakCancino/app-aguas.git
- Go to the folder and install Node.js.
cd app-aguas
npm install
- Add the Android platform to the Apache Cordova project.
cordova platform add android
- Because API keys are not provided in the repository, it is necessary to create a file called
secret.jsin the directorywww/config/(there is already an example calledsecret_sample.js). It must contain the following structures, with the API keys for api-aguas (private API) and for LocationIQ (public API).
const API_KEYS = {
AGUAS: "THE_API_KEY",
LOCATION_IQ: "THE_OTHER_API_KEY"
};- Finally, to build the app is used the following Cordova command. This will generate the APK in
platforms/android/app/build/outputs/apk/debug/ready to be installed in an Android device.
cordova build android
Izak Cancino
- GitHub: @IzakCancino
- Gmail: [email protected]
- Portfolio: izakcancino.github.io
Jensine Velazco
- GitHub: @JensineVelazco