Skip to content
Snippets Groups Projects
Commit da13d758 authored by jfriedli's avatar jfriedli
Browse files

updated readme

parent 19356a02
No related branches found
No related tags found
1 merge request!28Develop
Pipeline #27778 passed
# MAT2-web Quasar Frontend
# MAT2 Quasar Frontend (PWA)
![](mat-frontend.gif)
......@@ -13,19 +13,22 @@ To set the base url of the backend you have to define
`MAT2_API_URL_DEV` for dev builds and `MAT2_API_URL_PROD`
for production builds. If you use the docker environment
this is customizable in the `docker-compose.yml` file.
If none of these are set it will default to `http://localhost:5000/`.
Make sure to have slash at the end ;)
If none of these are set it will default to `http://localhost:5000/` (slash at the end).
## Docker
**Registry Frontend:** https://0xacab.org/jfriedli/mat2-quasar-frontend/container_registry
**Registry Backend:** https://0xacab.org/jvoisin/mat2-web/container_registry
On every new tag/master a new Docker Container is built. To configure
its API url you have to pass the environment variable
its API Url you have to pass the environment variable
`MAT_API_HOST_PLACEHOLDER` which points to your backend. Make sure
it has a slash at the end ;).
Example:
**Example:**
Build the container:
`docker build --build-arg MAT2_API_URL_PROD='$MAT_API_HOST_PLACEHOLDER' -t mat2frontend .`
Or alternatively get it from the registry prebuilt: https://0xacab.org/jfriedli/mat2-quasar-frontend/container_registry
Or alternatively get it from the registry prebuilt.
Then run it:
`docker run -it -e MAT_API_HOST_PLACEHOLDER='https://mybackend.gnu/' -p 80:80 mat2frontend`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment