Giter VIP home page Giter VIP logo

grabclone's Introduction

grabClone

A ride-booking app created with React Native and Pusher. Tutorial is available at: https://blog.pusher.com/creating-ride-booking-app-react-native-pusher/

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

  • Node.js - for installing react-native cli
  • React Native Development Environment - you need to install either Android Studio or Xcode, depending on where you want to deploy.
  • Genymotion - for running the app. You can also run it on your device if you want but it will be difficult to test the location change unless you move around. Genymotion has GPS emulation via a Google Map interface so it's easy to spoof the location and fake moving around.
  • now.sh - for deploying the server.

Built With

  • React Native - for building cross-platform apps with JavaScript and React.
  • Pusher - APIs to enable devs building realtime features.

Acknowledgments

Donation

If this project helped you reduce time to develop, please consider buying me a cup of coffee :)

Buy Me A Coffee

grabclone's People

Contributors

anchetawern 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

Watchers

 avatar  avatar  avatar  avatar  avatar

grabclone's Issues

i get error, after "now" command in cmd of windows10

Downloading 4 deployment files...
Installing build runtime...
Build runtime installed: 412.578ms
Looking up build cache...
Installing dependencies...

[email protected] preinstall /zeit/18b59264/node_modules/now
node ./scripts/preinstall.js

npm WARN [email protected] No description
npm WARN [email protected] No repository field.

added 125 packages from 141 contributors in 2.962s
Running "npm run build"

[email protected] build /zeit/18b59264
node build --output public

internal/modules/cjs/loader.js:800
throw err;
^

Error: Cannot find module '/zeit/18b59264/build'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:797:15)
at Function.Module._load (internal/modules/cjs/loader.js:690:27)
at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
at internal/main/run_main_module.js:17:11 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: node build --output public
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /zeit/.npm/_logs/2020-01-06T04_21_01_934Z-debug.log
Error: Exited with 1
at ChildProcess.child.on (/zeit/69d347bcc38c1970/.build-utils/.builder/node_modules/@now/static-build/dist/index.js:32747:24)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
worker exited with code 20 and signal null
done

Problem in bookRide function and Expo / React Native

Hi, I need a little help. I have a project in React Native for an app that works very similar to Uber (as in your grabClone project) but I'm doing it with "Expo" and as you know, Expo does not create the IOS and ANDROID folders. For this reason I am having problems to use the "bookRide" function because there you use RNGooglePlaces and React-Native-Google-Places-Picker is not compatible with Expo, because I can not configure the dependencies in Android. Maybe you could tell me which component I can replace React-Native-Google-Places-Picker ?? so that the bookRide function works in the same way?

Couldn't get auth info from your webapp : 404

First of all, thanks for this awesome walkthrough of pusher and now.sh
I don't know why I get this error on react-native.
I see that the post request succesfully reached my now.sh server but somehow I get that warning on react and the sad part is that I don't really know what is wrong with this.
I hope u have time to reply, thanks in advance.
image

Restrict Listening to channel events

I read your blog post, it was really nice solution to the case study. I had a follow up question.
If for example this ride-share app is going to be widely used in more than one countries and driver app subscribes to the channel: private-available-drivers and binds itself to the event: client-driver-request. So each driver irrespective of where he is, will receive all the ride requests (which appears to me an inefficient solution).

Instead, how can we make sure that only those drivers should receive the ride request event who are around 10 km near the customer?

What solution would you suggest for the scenario?

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.