GithubHelp home page GithubHelp logo

hasura / realtime-location-app Goto Github PK

View Code? Open in Web Editor NEW
8.0 30.0 3.0 3.56 MB

Realtime location tracking app powered by Hasura

Home Page: https://hasura.github.io/realtime-location-app/

HTML 2.92% CSS 4.72% JavaScript 92.36%

realtime-location-app's Introduction

Important: Moved to hasura/graphql-engine

The contents of this repo have been moved to hasura/graphql-engine. Please create all issues and pull requests there.


realtime-location-app

A demo application to showcase real-time capabilities of Hasura GraphQL Engine.

The Realtime location application is built using React and is powered by Hasura GraphQL Engine over Postgres. It has an interface for users to track location of a vehicle using Hasura live queries, in real-time.

The application makes use of Hasura GraphQL Engine's real-time capabilities using subscription. There is no backend code involved. The application is hosted on GitHub pages and the Postgres+GraphQL Engine is running on Postgres.

Running the app yourself

  • Deploy Postgres and GraphQL Engine on Heroku:

    Deploy to heroku

  • Get the Heroku app URL (say realtime-backend2.herokuapp.com)

  • Clone this repo:

    git clone https://github.com/hasura/graphql-engine
    cd graphql-engine/community/examples/realtime-location-tracking
  • Install Hasura CLI

  • Goto hasura/ and edit config.yaml:

    endpoint: https://realtime-backend2.herokuapp.com
  • Apply the migrations:

    hasura migrate apply
  • Edit HASURA_GRAPHQL_URL in src/constants.js and set it to the Heroku app URL:

    export const HASURA_GRAPHQL_URL = 'realtime-backend2.herokuapp.com/v1alpha1/graphql';
  • Run the app (go to the root of the repo):

    npm start

realtime-location-app's People

Contributors

karthikvt26 avatar shark-h avatar shahidhk avatar

Stargazers

JRib avatar René avatar Israel Santiago avatar Jacquelline Beltran avatar Dion Liddell avatar  avatar Duncan K avatar Vlad Frolov avatar

Watchers

Solomon avatar Brandon Martin avatar Tanmai Gopal avatar  avatar Rikin Kachhia avatar Stefano Magni avatar Chris Parks avatar James Cloos avatar Jesse avatar Toan Nguyen  avatar Rajoshi Ghosh avatar Vishnu Bharathi avatar Sameer Kolhar avatar Jigyasu Arya avatar Tirumarai Selvan avatar  avatar John Kiragu avatar Vijay Prasanna avatar Rakesh Emmadi avatar Chris Sam avatar Ram avatar Praveen Durairaju avatar Sheila Babadi avatar Karthikeyan Chinnakonda avatar Sandeep Raj Kumar avatar  avatar Andrew avatar Naveen Naidu avatar IMRAN KHAN avatar  avatar

realtime-location-app's Issues

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.