- create postgres env file by running
cp ./postgres/.env.example ./postgres/.env - create dcat_service database connection env file by running
cp ./api/dcat_service/.env.example ./api/dcat_service/.env
- To force build docker images:
docker-compose --build-arg MAPGL_ACCESS_TOKEN=<your_mapgl_token> build --no-cache - Run
docker-compose up -dto spin up all containers
- Frontend is written in Svelte an lives under
api/frontenddirectory. - The main entry point into the frontend is
public/index.html - CSS and JS are compiled by Svelte from individual
.sveltefiles insidesrc/and placed intopublic/bundle.[css|js] - To (re)build Svelte, from within
frontenddirectory, runnpm install && npm run build, which will re-generatepublic/bundle.[css|js] - To display maps, we use Mapbox, which requires an access token. Svelte expects it to be avaiable under
MAPGL_ACCESS_TOKENenvironment variable when runningnpm run build
- Run
psql -h localhost -p 5433 -U postgresto check database content - For first time setup: after postgres container is started, in MINT-Data-Catalog:
- run
docker cp ./postgres/dcat_db_tables_202012.sql dcat_postgresql:/tmp/ - run
docker exec -it dcat_postgresql psql -U postgres -f /tmp/dcat_db_tables_202012.sqlto create all tables manually - check database for
datasets,variables,resourcestables etc
- run