Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UI
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coscine
frontend
apps
UI
Commits
a73f2873
Commit
a73f2873
authored
2 years ago
by
Petar Hristov
Browse files
Options
Downloads
Plain Diff
Merge branch 'Docs/Setup' into 'dev'
Docs: Add Commands See merge request
!190
parents
8d7ad883
e0a296ff
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!192
Release: Sprint/2023 03 :robot:
,
!190
Docs: Add Commands
Pipeline
#911539
passed
2 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+35
-27
35 additions, 27 deletions
README.md
with
35 additions
and
27 deletions
README.md
+
35
−
27
View file @
a73f2873
...
@@ -21,30 +21,38 @@ Currently available routes in Coscine (Vue Router):
...
@@ -21,30 +21,38 @@ Currently available routes in Coscine (Vue Router):
(For a specific branch, build such a URL:
`https://gitpod.io/#https://git.rwth-aachen.de/coscine/frontend/apps/ui/tree/{branch}`
)
(For a specific branch, build such a URL:
`https://gitpod.io/#https://git.rwth-aachen.de/coscine/frontend/apps/ui/tree/{branch}`
)
## Starting the App
## Commands
So, since we want to have it running on the root url at some point
-
Change the following Consul key's value key:
This project uses
[
Yarn
](
https://yarnpkg.com/
)
and
[
Node.js
](
https://nodejs.org/en/
)
to manage its dependencies.
### Project setup
```
yarn install
```
```
traefik/backends/sharepoint/servers/sharepoint/url
### Compiles and hot-reloads for development
```
yarn dev
```
```
value (replace
`XX`
with your machine's name):
### Compiles and minifies for production
```
```
http://d-spXX.devlef.campus.rwth-aachen.de:9234
yarn build
```
```
-
This will disable your current Coscine instance, so to activate it back, remove the
`:<PORT>`
from the value.
1.
Run integrator script on branch
`uiv2`
### Runs the minified production build
2.
Add required frontend libraries to your workspace if necessary (e.g. here
`api-client`
and
`form-generator`
):
```
```
json
yarn preview
"workspaces"
:
[
"apps/ui"
,
"libraries/form-generator"
,
"libraries/api-client"
]
```
```
3.
For each library checkout the relevant branch and execute
`yarn install`
, then
`yarn build`
-
Here:
`api-client`
on branch
`dev`
/
`master`
, then
`yarn install`
and
`yarn build`
### Lints files
-
Here:
`form-generator`
on branch
`dev`
/
`master`
, then
`yarn install`
and
`yarn build`
```
5.
Check out the UI project on the provided repository branch. Start the app locally and execute
`yarn install`
, then
`yarn dev`
yarn lint
6.
Change your Consul key according to the
[
Readme
](
https://git.rwth-aachen.de/coscine/frontend/apps/ui/-/blob/main/README.md
)
(
see
above)
```
7.
App is now running on your root (/) domain name, and not under
`.../coscine/apps/ui/....`
(e.g. https://d-sp16.devlef.campus.rwth-aachen.de/)
### Lints and fixes files
```
yarn lint:fix
```
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