SaathMeTravel is a platform where you can plan for a journey i.e. setting your travel source and destination and then you will be matched to other travellers who are also looking for similar travel plan. You can take ideas from them, discuss plannings or even travel together.
- You come to SaathMeTravel app.
- You see nearby travellers on map.
- You plan for a journey e.g. from Bangalore to Coorg.
- You will be matched to other fellow travellers planning similar journey.
- You can chat with them to share ideas and discuss plannings.
- You can get details about Bangalore, ratings and reviews etc.
- Clone the project/download zip
- Import it in AndroidStudio
- Add
SAATHMETRAVEL_GOOGLE_MAPS_API_KEY=AIza...
in~/.gradle/gradle.properties
file (inside home folder) - Replace Aiza... with your google map api key. You can get it from https://developers.google.com/maps/documentation/android-sdk/signup
- Create an android firebase project https://console.firebase.google.com and put
google-services.json
file inside app directory
- You need to enable firebase-auth, firebase-firestore, firebase-messaging, firebase-crashlytics and firebase-remote-config in your project.
- Build and run the project
When you download app and login using your email, you will receive a welcome email. App is completely serverless and this part is implemented using google cloud functions (https://firebase.google.com/docs/functions/get-started). To deploy your own cloud functions-
- Go to cloud-functions directory inside project
cd cd cloud-functions/
- Install firebase-cli globally in your machine
npm install -g firebase-tools
- Login to firebase
firebase login
- Install dependencies
npm install
- Use your own gmail credentials to send emails (you can check in sent emails). To do so, configure your gmail credentials to firebase
firebase functions:config:set gmail.email <[email protected]>
firebase functions:config:set gmail.password <your_gmail_password>
- Enable less secure apps in gmail https://www.google.com/settings/security/lesssecureapps
- You might also need to enable this https://accounts.google.com/DisplayUnlockCaptcha
- To highlight route between source and destination you need to configure a google place api key. Pass it to firebase configuration environment variable using
firebase functions:config:set google_maps.routes_places_api_key <GOOGLE_PLACE_API_KEY>
- You can get place api key from https://developers.google.com/places/web-service/get-api-key
- Deploy functions
firebase deploy --only functions
- Try signing up using email and you will receive welcome email from your own gmail account