Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@ Also currently we donn't the tour ID and any sharing information, this would be

## TODO's

Currently the Vapor Swift backend is not compiling a x86-64 docker image. This has to solved or the image has to be hosted on some arm64 hoster but e.g. Google cloud run only supports linug/amd64.
Currently the Vapor Swift backend is ~~not~~ compiling a `x86-64` docker image. This has to solved or the image has to be hosted on some `arm64` hoster but e.g. Google cloud run only supports `linux/amd64` witch is `x86-64`.

This solved we can use the API also to provide more dynamic (random) / tour of the day informations and also persist the used ones in postgresql db.
This solved, we could now use the API also to provide more dynamic (random) / tour of the day informations and also persist the used ones in postgresql db.

Before building the backend copy the Tour_de.json to `/Resources`. (>100MB -> git lfs)

### Docker

The docker container can be build with:
The docker container can be build with: (inside folder `vapor_backend`)

`docker compose build`

or multi architecture:

`vapor_backend % docker buildx build --platform linux/amd64 --push -t eu.gcr.io/tourdata/tourdata .`
`docker buildx build --platform linux/amd64 --push -t eu.gcr.io/tourdata/tourdata .`

[info](https://www.docker.com/blog/multi-platform-docker-builds/)

Expand Down
3 changes: 3 additions & 0 deletions web_frontend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ mapboxgl.accessToken =
hash: false,
});

// Add zoom and rotation controls to the map.
map.addControl(new mapboxgl.NavigationControl());

// We wait for
// - download of first batch of routes
// - Loading of the map
Expand Down