Done by: Chee Han, Michael, Aaron, Arjun, Pranav, Owen
Given the recent congestion at car parks in Singapore, a user-friendly car-parking app that displays the availability of nearby car parks becomes essential. ParkProximity is a mobile application that displays the availability of car parks near the user and provides directions to the selected car park. Additional features include navigation to the nearby car park, pinpointing parked car locations, retrieving a record of the user’s parking history, and saving favourites.
This product is to help users make use of the publicly available datasets from data.gov.sg and Land Transport Authority APIs. The product adds on to these datasets by providing search functionality and provides directions using the Google Maps API.
- Clone front end
- Download dependencies required after navigating to the
parking
folder
dart pub get
- Update the IP address for
webConnect
in theparking/lib/constant/constant.dart
to own backend server IP address
- Install
PostGreSQL
- Navigate to
src/main/resources/application.properties
- Ensure that
spring.datasource.url
andspring.datasource.username
has been updated with the correct information
If you are developing on an Ubuntu system, include this line in the pg_hba.conf
file in your postgresql installation folder
local all all trust
- Firstly, ensure that the map is in place with carparks
- Secondly, go to the filters page and check off all the availability filters
- If the error still persists, it might be due to incorrect saving of the
SharedPreferences
in the flutter app - To fix this, simply clear the remove the
settings
key in theSharedPreferences
by including the following line beforerunApp
inmain.dart
prefs.remove('settings');
- Let the app run, it would be better it there is a breakpoint set at the included line
- Stop the app anytime after that line ran and remove it
- Rerun the app
- If the error still persists, repeat step 2