Coder Social home page Coder Social logo

cometchat-pro-tutorials / uber-clone Goto Github PK

View Code? Open in Web Editor NEW
11.0 0.0 8.0 107.17 MB

A clone of Uber with the integration of CometChat communications SDK.

Home Page: https://uber-clone-iota.vercel.app

HTML 0.19% JavaScript 98.47% CSS 1.34%
react firebase uber cometchat

uber-clone's Introduction

How to Build a Rideshare Site with React.JS (Uber Clone)

Read the full tutorial here: >> How to Build a Rideshare Site with React.JS (Uber Clone)

This example shows How to Build a Rideshare Site with React.JS (Uber Clone):

Uber Clone

Uber Clone

Technology

This demo uses:

  • CometChat Pro 3.0.0
  • CometChat UI Kit
  • Firebase
  • React.js
  • Uuid
  • Validator
  • Leaflet
  • Leaflet-geosearch
  • Leaflet-routing-machine
  • @emotion/core
  • dateformat
  • emoji-mart
  • react-html-parser
  • twemoji

Running the demo

To run the demo follow these steps:

  1. Head to CometChat Pro and create an account
  2. From the dashboard, add a new app called "uber-clone"
  3. Select this newly added app from the list.
  4. From the Quick Start copy the APP_ID, APP_REGION and AUTH_KEY. These will be used later.
  5. Also copy the REST_API_KEY from the API & Auth Key tab.
  6. Navigate to the Users tab, and delete all the default users and groups leaving it clean (very important).
  7. Download the repository here or by running git clone https://github.com/hieptl/uber-clone.git and open it in a code editor.
  8. Head to Firebase and create a new project
  9. Create a file called .env in the root folder of your project.
  10. Import and inject your secret keys in the .env file containing your CometChat and Firebase in this manner.
REACT_APP_FIREBASE_API_KEY=xxx-xxx-xxx-xxx-xxx-xxx-xxx-xxx
REACT_APP_FIREBASE_AUTH_DOMAIN=xxx-xxx-xxx-xxx-xxx-xxx-xxx-xxx
REACT_APP_FIREBASE_DATABASE_URL=xxx-xxx-xxx-xxx-xxx-xxx-xxx-xxx
REACT_APP_FIREBASE_STORAGE_BUCKET=xxx-xxx-xxx-xxx-xxx-xxx-xxx-xxx

REACT_APP_COMETCHAT_APP_ID=xxx-xxx-xxx-xxx-xxx-xxx-xxx-xxx
REACT_APP_COMETCHAT_REGION=xxx-xxx-xxx-xxx-xxx-xxx-xxx-xxx
REACT_APP_COMETCHAT_AUTH_KEY=xxx-xxx-xxx-xxx-xxx-xxx-xxx-xxx
REACT_APP_COMETCHAT_API_KEY=xxx-xxx-xxx-xxx-xxx-xxx-xxx-xxx

REACT_APP_MAP_BOX_API_KEY=xxx-xxx-xxx-xxx-xxx-xxx-xxx-xxx
  1. Make sure to exclude .env in your gitIgnore file from being exposed online.
  2. Run the following command to install the app.
    npm install
    npm run start

Questions about running the demo? Open an issue. We're here to help โœŒ๏ธ

Useful links

uber-clone's People

Contributors

hieple3112 avatar hieptl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.