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.git
to 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 nodemon
to 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 frontend
to change directory to the frontend folderyarn install
to install the required packages for the applicationyarn start
to launch the application. The application will be available on localhost:3000.
Deployment of the backend happens in multiple stages, listed below.
psql
to launch an interactive postgres shellCREATE USER findaloo
to create a new userCREATE DATABASE findaloo
to create a corresponding database\q
to quit psqlcd backend/sql
to open the sql folderpsql findaloo
to open the findaloo database\i 1_ppp.sql
to initialise the database tables\i n_filename.sql
in order of increasing numbers in the current folder to load SQL views- [OPTIONAL]
cd ../scripts
to open the scripts folder - [OPTIONAL]
\i n_filename.sql
in order of increasing numbers in the current folder to load sample data
cd ../db
to enter the db foldercp settings_blank.js settings.js
to create a settings.js file- Open
settings.js
and fill up the details in line 1 - 5 with the database user information.
cd ../
to return to the backend folderyarn install
to install the required packages for the applicationyarn start
to launch the API server. It will be available onlocalhost:3000
.yarn startAuth
to launch the Auth server. It will be available onlocalhost:4000
.