Skip to content

Commit

Permalink
add .nvmrc and update doc
Browse files Browse the repository at this point in the history
Signed-off-by: bupd <[email protected]>

update nvmrc to supported version

Signed-off-by: bupd <[email protected]>
  • Loading branch information
bupd committed Nov 12, 2024
1 parent a0d27d3 commit bf4ab03
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/portal/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16.18.0
19 changes: 13 additions & 6 deletions src/portal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,18 @@ This is the project based on Clarity and Angular to build Harbor UI.

Start
============
1. npm install (should trigger 'npm postinstall')
2. npm run postinstall (if not triggered, manually run this step)
3. copy "proxy.config.mjs.temp" file to "proxy.config.mjs"
1. Use the specified Node version:
Run the following command to use the Node version specified in the .nvmrc file:
```bash
nvm install # Install the Node version specified in .nvmrc (if not already installed)
nvm use # Switch to the specified Node version
```
This step helps avoid compatibility issues, especially with dependencies.
2. npm install (should trigger 'npm postinstall')
3. npm run postinstall (if not triggered, manually run this step)
4. copy "proxy.config.mjs.temp" file to "proxy.config.mjs"
`cp proxy.config.mjs.temp proxy.config.mjs`
4. Modify "proxy.config.mjs" to specify a Harbor server. And you can specify the agent if you work behind a corporate proxy
5. npm run start
6. open your browser on https://localhost:4200
5. Modify "proxy.config.mjs" to specify a Harbor server. And you can specify the agent if you work behind a corporate proxy
6. npm run start
7. open your browser on https://localhost:4200

2 changes: 1 addition & 1 deletion src/portal/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
],
"useDefineForClassFields": false
},
"exclude": ["cypress.config.ts"],
"exclude": ["cypress.config.ts"]
}

0 comments on commit bf4ab03

Please sign in to comment.