Findaloo is a progressive web application designed to help you find the nearest toilets around you! See how far away they are, what genders are avaiable, or even see a list of features available. Are you a parent? Find the nearest nursing rooms with hot water dispensers and baby change stations around you.
Just had the most wonderful experience in your lifetime so far? Leave a review! Upset that something broke? File a report to let management know.
With findaloo, dirty, smelly toilets will be a thing of the past. Visit us at https://findaloo.netlify.app today!
Role: Frontend Developer
Contribution: UI Design, Explore pages
Role: Frontend Developer
Contribution: Profile, Report and Review pages
Role: Frontend Developer
Contribution: Authentication, List page
Role: Backend Developer
Contribution: Data scraping, Authentication routes, Toilet Routes, Image upload (profile photo)
Role: Backend Developer
Contribution: Authentication, Toilet routes, User Profile routes, Report & Review routes
In order to run the application, please follow the steps below. The application is divided into two main folders: the frontend and the backend. These can be run on separate servers, or together on the same server.
git clone https://github.com/cs3216/2020-a3-mobile-cloud-2020-group-3.gitto clone the repo- Ensure that node.js
>v11.and PostgreSQL> v12.is installed on the system - Ensure that the yarn package manager is installed
yarn add nodemonto install nodemon, which is required to launch the package scripts.
We recommend that you deploy on netlify. However, for local deployment, follow the steps below:
cd frontendto change directory to the frontend folderyarn installto install the required packages for the applicationyarn startto launch the application. The application will be available on localhost:3000.
Deployment of the backend happens in multiple stages, listed below.
psqlto launch an interactive postgres shellCREATE USER findalooto create a new userCREATE DATABASE findalooto create a corresponding database\qto quit psqlcd backend/sqlto open the sql folderpsql findalooto open the findaloo database\i 1_ppp.sqlto initialise the database tables\i n_filename.sqlin order of increasing numbers in the current folder to load SQL views- [OPTIONAL]
cd ../scriptsto open the scripts folder - [OPTIONAL]
\i n_filename.sqlin order of increasing numbers in the current folder to load sample data
cd ../dbto enter the db foldercp settings_blank.js settings.jsto create a settings.js file- Open
settings.jsand fill up the details in line 1 - 5 with the database user information.
cd ../to return to the backend folderyarn installto install the required packages for the applicationyarn startto launch the API server. It will be available onlocalhost:3000.yarn startAuthto launch the Auth server. It will be available onlocalhost:4000.