Skip to content

D2KLab/datatourisme-map

Repository files navigation

DATAtourisme Map

This project is a map of the points of interest in France. It is based on the DATAtourisme API.

Installation

Setup

  1. Clone the repository
  2. Copy the .env.example file to .env and fill in the required values
  3. If using Docker, make sure that PG_HOST in the .env file is set to db. Or use the .env.docker file instead of .env when running the application with Docker.
  4. Download DATAtourisme feed data and extract it to the data folder. The structure of the data folder should look like this:
    data
    ├── index.json
    ├── context.jsonld
    ├── objects
    │   ├── 0
    │   │   ├── 00
    │   │   ├── 0a
    │   │   ├── ...
    │   ├── 1
    │   ├── ...
    

With Docker

  1. Run docker compose up
  2. Import data by running docker compose exec web npm run import
  3. Open your browser and go to http://localhost:3000

Without Docker

  1. Run npm ci
  2. Run npm start
  3. Import data by running npm run import
  4. Open your browser and go to http://localhost:3000

Credits

The server-side marker cluster is based on the implementation by alfiankan in his medium post.