Giter Site home page Giter Site logo

singh-shivani / hopon Goto Github PK

View Code? Open in Web Editor NEW
124.0 6.0 37.0 186.59 MB

A car rental flutter application using firebase and google maps API

License: MIT License

Kotlin 0.08% Swift 0.27% Objective-C 0.02% Dart 99.63%
flutter-apps flutter-ui dart firebase firebase-auth firebase-realtime-database firebase-firestore firebase-functions google-maps-api places-api

hopon's Introduction

GitHub license Safe Dart Flutter Figma Firebase

hopnOnPoster (1)

A car sharing & rental app using Flutter, Firebase & Google Maps APIs 🔥



About the App 🚘

  • hopOn is flutter based application for car sharing and rental services.

  • The two main functions that app includes are -

    1. Rent a nearby car
    2. Give your car on rent
  • The app uses 3 Google Maps API

    1. Geocoding API (provides geocoding and reverse geocoding of addresses)
    2. Places API (returns information about places using HTTP requests)
    3. Directions API (returns JSON or XML-formatted directions between locations)
  • If user wants to rent a car he/she has to search for a dropOff location, after selecting a location(from suggestions) user gets the cost of ride with options to select pickup and dropOff dates.

  • After this information user gets a list of cars which are available in his/her nearby area. On the selection of any of the cars it shows all the information about car- owner's name, car's rent etc. After this you can pay and your ride will be booked.

  • For payments app uses Razorpay Demo platform (package in flutter)

  • Once the payment is done, it saves the data in Firebase Realtime Database. Along with saving ride history on user's end who has booked this ride, information about the rented car also gets saved on the owner side where he can see who has rented his/her car with some information about the ride. A User can cancel a ride anytime.

  • You can give your car on rent by just providing some information about the car your're registering like image, model name etc. It gets save in Firebase Firestore. After registerting your car you have an option to give your car on rent or to remove it from rent anytime you want.

Wireframe✒️

In action👀

1. Rent a car

Logo


2. Give your car on rent

Logo



3. Rented car's details

Logo



Some important things to note

  • If you're trying to make changes or to contribute in this project, please make sure you have a brand new Firebase project and connect that with Google Cloud Platform to access maps features.
  • Follow these steps if you're new to Firebase.
  • GCP gives you $200 free on your first project, you just have to link your project with a billing account. Please follow official docs for more details.
  • In GCP under API & SERVICES make sure you have enabled these 3 APIs along with API FOR Android/iOS.
  • Test if your API key if working perfectly else restricts the keys with a particular API service.
  • !!THE MOST IMPORATNT POINT!!
  • Make sure your project is under Google Maps Platform services otherwise you can't have access to these APIs even if you have enabled it successfully. It will not grant permission to use the API and you'll get errors afterwards.
  • If you have your project under GMP service(either you can use GCP or GMP for a project) your firebase project won't work here, so here is the solution we followed:
  • We made a firebase project named as 'hopOnFirebase', we connected that with GCP(because firebase project only connects to GCP) and flutter app.
  • We made another project "mapsProject" which follows GMP because it is a GMP project, now you can enable and use these 3 APIs.
  • Generate your API key(restrict them to these 3 API services only).
  • Your flutter app is connected to Firebase project "hopOnFirebase". Now you can use this API key(Key of "mapsProject" ) into you flutter app(connected with "hopOnFirebase")
  • That's all!

Keep Going!!!

  • Feel free to ask your doubts and contribute to this project.
  • Do ⭐ the repo if you like the work!🙌

hopon's People

Contributors

singh-shivani avatar yashashetty502 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

hopon's Issues

problem occurred configuring project ':image_cropper'.

Hello there sister, i have tried running your hop-on, flutter , but this is the error im receiving please help.

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':image_cropper'.

Could not resolve all dependencies for configuration ':image_cropper:classpath'.
Could not load module metadata from C:\Users\MTGSTCKN.gradle\caches\modules-2\metadata-2.71\descriptors\com.android.tools.lint\lint-gradle-api\26.6.3\fc7e8eef251519086b6ee9788cba4dd2\descriptor.bin
Could not get unknown property 'android' for project ':image_cropper'
of type org.gradle.api.Project.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or
    --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 46s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 54.5sGradle task assembleRelease failed with exit code 1

Issue on error building apk

Hello there sister, after downloading your project, just by inserting and running "Flutter build apk --release" , i got the following error, pls help me to sort it out.
Running Gradle task 'assembleRelease'...

FAILURE: Build failed with an exception.
Running Gradle task 'assembleRelease'...

Running Gradle task 'assembleRelease'...

  • What went wrong:
    Running Gradle task 'assembleRelease'...

java.net.BindException: Address already in use: Cannot bind
Running Gradle task 'assembleRelease'...

Running Gradle task 'assembleRelease'...

  • Try:
    Running Gradle task 'assembleRelease'...

Run with --stacktrace option to get the stack trace. Run with
--info or --debug option to get more log output. Run with --scan to get full insights.
Running Gradle task 'assembleRelease'...

Running Gradle task 'assembleRelease'...
* Get more help at https://help.gradle.org
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 36.9s
Gradle task assembleRelease failed with exit code 1

C:\Users\MTGSTCKN\Downloads\Compressed\hopOn-master\hopOn-master\lib>

Cant Run

Hey Shivani,

First of all thanks to you for uploading fantastic project.

My concern is, I cant run this file at my end, can you remake this app with a video tutorial ? That will be great and very helpful for many peeps!

Or just a make a tutorial, guide us start to end.

Thank you.

Confused with setting up

Hey!

Would you be able to make a video on how to set up the project, or maybe go more in detail about setting it up? Because im confused about how to connect the APIs with firebase and with the app its a bit overwhelming. Love your project tho!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.