Skip to content

Sample app to demo hasura and postgis capabilities by plotting nearby restaurants on the map

Notifications You must be signed in to change notification settings

karthikvt26/postgis-hasura-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

postgis-hasura-app

A demo application to showcase postgis capabilities and a map application to simulate restaurants nearby.

This application is built using React and is powered by Hasura GraphQL Engine over Postgres. It has an interface to query nearby location given lat, lng and radius in real-time.

Running the app yourself

  • Clone this repo:
    git clone https://github.com/karthikvt26/postgis-hasura-map
    cd postgis-hasura-map
  • Run hasura graphql engine on your machine or on an external server as follows
    cd hasura
    docker-compose up -d
  • Install Hasura CLI
  • Goto hasura/ and edit config.yaml:
    endpoint: http://localhost:8080
  • Apply the migrations:
    hasura migrate apply
  • Run the app (go to the root of the repo):
    REACT_APP_HASURA_ENDPOINT=localhost:8080 npm start

About

Sample app to demo hasura and postgis capabilities by plotting nearby restaurants on the map

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published