Skip to content

Latest commit

 

History

History
32 lines (28 loc) · 956 Bytes

README.md

File metadata and controls

32 lines (28 loc) · 956 Bytes

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