The Virtual Research Environment of the Geovistory Ecosystem.
This is a monorepo for server and client of the toolbox.
/servercontains all server code (node.js / LoopBack)/clientcontains all client code (angular)
Developing the toolbox server and client requires external components. These are packed into a docker-compose file in the GitHub repo geovistory/dev-stack.
Donwload the stack:
git clone https://github.com/geovistory/dev-stack.gitChange the directory:
cd dev-stackStart the stack (using docker-compose under the hood)
bash scripts/buildSee more on https://github.com/geovistory/dev-stack.
To develop the toolbox client, we need to set two env vars to match the URLs of the dev stack.
- API_URL: The URL of the toolbox server api (for development usually hosted by dev-stack).
- ASSETS_URL: The URL of the server hosting the front-end assets (for development usually hosted by angular dev-server).
By default, the URLs in client/.env.example match the dev-stack and angular dev-server default configuration.
If you did not change the defaults, run:
cd client
npm run serveThis will copy the .env.example to .env and create the correct env.js in the angular app.
If you need to modify the API_URL or ASSETS_URL, edit the gitignored client/.env file.