This project is a map of the points of interest in France. It is based on the DATAtourisme API.
- Clone the repository
- Copy the
.env.example
file to.env
and fill in the required values - If using Docker, make sure that
PG_HOST
in the.env
file is set todb
. Or use the.env.docker
file instead of.env
when running the application with Docker. - Download DATAtourisme feed data and extract it to the
data
folder. The structure of thedata
folder should look like this:data ├── index.json ├── context.jsonld ├── objects │ ├── 0 │ │ ├── 00 │ │ ├── 0a │ │ ├── ... │ ├── 1 │ ├── ...
- Run
docker compose up
- Import data by running
docker compose exec web npm run import
- Open your browser and go to
http://localhost:3000
- Run
npm ci
- Run
npm start
- Import data by running
npm run import
- Open your browser and go to
http://localhost:3000
The server-side marker cluster is based on the implementation by alfiankan in his medium post.