postgis-hasura-map
postgis-hasura-map copied to clipboard
Sample app to demo hasura and postgis capabilities by plotting nearby restaurants on the map
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 editconfig.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