Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mat2-quasar-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jfriedli
mat2-quasar-frontend
Commits
da13d758
Commit
da13d758
authored
5 years ago
by
jfriedli
Browse files
Options
Downloads
Patches
Plain Diff
updated readme
parent
19356a02
No related branches found
No related tags found
1 merge request
!28
Develop
Pipeline
#27778
passed
5 years ago
Stage: build
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+9
-6
9 additions, 6 deletions
README.md
with
9 additions
and
6 deletions
README.md
+
9
−
6
View file @
da13d758
# MAT2
-web
Quasar Frontend
# MAT2 Quasar Frontend
(PWA)

...
...
@@ -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
u
rl you have to pass the environment variable
its API
U
rl 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`
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment