This example app shows the basic integration of a geocoder component built with downshift into a react app with a mapbox gl map. The geocosearcher uses the TNRIS nominatim geocoding service. The component will also work with other mapping libraries if the map code is adjusted for that library.
Your local dev environment can be setup in 2 ways. The preferred method is to use docker compose.
- Make a copy of
.env.local.example
and name it.env.local
- Add the app secrets to
.env.local
before starting up
Prerequisites: Docker Engine & Docker Compose
- From the project directory, start up the application by running
docker-compose up
- Enter http://localhost:3000/ in a browser to see the application running
Prerequisite: node 12.6 & npm 6.9
- From the project directory, install app dependencies by running
npm install
- Start up the application by running
npm run start
- Enter http://localhost:3000/ in a browser to see the application running