Cleansify is a web application app which allows users to request cleaning services based on the time and location. It is built with Node.js, React and Firebase.
- Getting Started
- Running Cleansify App
- Firebase Realtime Database
- Deployment
- Built With
- Version
- Authors
- Acknowledgments
Node.js must be installed on local machine in order to run the app. If your local machine does not have Node.js installed, you can download and install from the officical website.
If you want to run the latest code from git, here's how to get started:
-
Clone the code:
git clone https://github.com/theinhtut/cleansify.git cd cleansify
-
Install cleansify dependencies
npm install
-
Create ".env.development" file under the root folder
cleansify/.env.development
with your own Firebase's credentialsFIREBASE_API_KEY=XX FIREBASE_AUTH_DOMAIN=XX FIREBASE_DATABASE_URL=XX FIREBASE_PROJECT_ID=XX FIREBASE_STORAGE_BUCKET=XX FIREBASE_MESSAGING_SENDER_ID=XX [email protected] GOOGLE_MAIL_PASSWORD=XX
-
You need to "Allow less secure apps: ON" temporarily in Google here.
You can turn off later(Recommended)
-
Build for production before getting start (IMPORTANT)
npm run build:prod
-
Run
npm start
or
node server/server.js
Once the server has started, you will see the following in your console.
$ node server/server.js
Server is running on PORT 3000
Everything is fully setup and now it is good to go. You can go to http://localhost:3000
to use Cleansify.
If you want to setup your own database on Firebase, you must sign up your google account first.
Firebase Realtime Database is a cloud-hosted database. Data is stored as JSON and synchronized in realtime to every connected client.
The followings are the data structure stored inside Firebase Realtime Database.
Whenever users click on "Check Availability", it will find the availabe vendors based on two references:
Cleansify is now live on Heroku. You can visit https://cleansify.herokuapp.com
- Node.js - Node.jsยฎ is a JavaScript runtime built on Chrome's V8 JavaScript engine.
- React - React is a JavaScript library for building user interfaces.
- Firebase - Firebase is Google's mobile platform that helps you quickly develop high-quality apps and grow your business.
- Webpack - Webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser.
- Babel -Babel.js is a free and open-source JavaScript compiler and configurable transpiler used in web development.
Cleansify v1.0.0
- Thein Htut - Cleansify - Github
See also the list of contributors who participated in this project.
- Brillianda Sheravina - For inspiration by love โค and testing the web application
- To anyone whose codes were used as reference.