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
aa8ef2f5
Commit
aa8ef2f5
authored
5 years ago
by
jfriedli
Browse files
Options
Downloads
Patches
Plain Diff
Added manual deployment description
parent
f8fdb2a0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!127
prepare v1.2.0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+16
-4
16 additions, 4 deletions
README.md
with
16 additions
and
4 deletions
README.md
+
16
−
4
View file @
aa8ef2f5
# MAT2 Quasar Frontend (PWA)

This is a frontend for
[
MAT2-web
](
https://0xacab.org/jvoisin/mat2-web
)
.
## Up and Running
## Up and Running
for development
To start developing use
`docker-comse up`
and if
this was successful you can access the app on:
`localhost:8080`
. This will start the backend as well
using it's latest docker image.
## Configuration
##
#
Configuration
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/`
(slash at the end).
## Docker
## Docker
Container Registries for this project
**Registry Frontend:**
https://0xacab.org/jfriedli/mat2-quasar-frontend/container_registry
**Registry Backend:**
https://0xacab.org/jvoisin/mat2-web/container_registry
...
...
@@ -33,6 +33,18 @@ 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`
## Manual Deployment
To create a build yourself:
1) Install dependencies:
`yarn install`
2) Export env variable
`MAT2_API_URL_PROD`
which points to your
[
MAT2-web backend
](
https://0xacab.org/jvoisin/mat2-web
)
e.g.
`MAT2_API_URL_PROD=https://mybackend.gnu/`
. Alternatively you can define the URL in the
`quasar.conf.js`
file
on the following line:
`API_URL: JSON.stringify(process.env.MAT2_API_URL_PROD)`
and change it to:
`API_URL: 'https://mybackend.gnu/'`
3)
`quasar build -m pwa`
(Must have installed the quasar cli)
4) Copy the files from
`./dist/pwa`
to your hosting.
5) Enjoy :)
## Dependency Management
We do use renovate which checks every night for updates and creates automated merge request.
...
...
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