-
Notifications
You must be signed in to change notification settings - Fork 41
docs: fix README paths (module→modules), unify dev commands, and clar… #104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -24,7 +24,7 @@ For frontend module, nodejs, npm/yarn/pnpm is needed, pnpm is recommended. | |||||||||||
| To install the backend dependencies, you need to have Go installed. You can use the following command to install the dependencies: | ||||||||||||
|
|
||||||||||||
| ```bash | ||||||||||||
| cd module | ||||||||||||
| cd modules | ||||||||||||
| go mod download | ||||||||||||
| ``` | ||||||||||||
|
|
||||||||||||
|
|
@@ -33,19 +33,19 @@ go mod download | |||||||||||
| To install the frontend dependencies, you can use npm, yarn, or pnpm. Choose one of the following commands based on your preference: | ||||||||||||
|
|
||||||||||||
| ```bash with npm | ||||||||||||
| cd module/web | ||||||||||||
| cd modules/web | ||||||||||||
| npm install | ||||||||||||
| ``` | ||||||||||||
|
|
||||||||||||
| ```bash with yarn | ||||||||||||
| cd module/web | ||||||||||||
| cd modules/web | ||||||||||||
| yarn install | ||||||||||||
| ``` | ||||||||||||
|
|
||||||||||||
| or | ||||||||||||
|
|
||||||||||||
| ```bash with pnpm | ||||||||||||
| cd module/web | ||||||||||||
| cd modules/web | ||||||||||||
| pnpm install | ||||||||||||
| ``` | ||||||||||||
|
|
||||||||||||
|
|
@@ -56,7 +56,7 @@ pnpm install | |||||||||||
| You can start the backend server by running the following command: | ||||||||||||
|
|
||||||||||||
| ```bash | ||||||||||||
| cd module/api | ||||||||||||
| cd modules/api | ||||||||||||
| go run main.go --apiserver-host=https://192.168.33.129:6443 | ||||||||||||
| ``` | ||||||||||||
|
|
||||||||||||
|
|
@@ -65,26 +65,23 @@ If your API server is running with self-signed certificate, you can set `--apise | |||||||||||
| ### Frontend | ||||||||||||
|
|
||||||||||||
| ```bash with npm | ||||||||||||
| cd module/web | ||||||||||||
| cd modules/web | ||||||||||||
| npm run build | ||||||||||||
| API_SERVER={api module address} npm run start | ||||||||||||
| Example: API_SERVER=http://127.0.0.1:8080 npm run dev | ||||||||||||
| API_SERVER=http://127.0.0.1:8080 npm run dev | ||||||||||||
|
Comment on lines
69
to
+70
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The For a development setup, you should only need to run the For example: Development API_SERVER=http://127.0.0.1:8080 npm run devProduction npm run build
API_SERVER=http://127.0.0.1:8080 npm run startThis comment also applies to the
Suggested change
|
||||||||||||
| ``` | ||||||||||||
| or | ||||||||||||
|
|
||||||||||||
| ```bash with yarn | ||||||||||||
| cd module/web | ||||||||||||
| cd modules/web | ||||||||||||
| yarn build | ||||||||||||
| API_SERVER={api module address} yarn start | ||||||||||||
| Example: API_SERVER=http://127.0.0.1:8080 yarn dev | ||||||||||||
| API_SERVER=http://127.0.0.1:8080 yarn dev | ||||||||||||
| ``` | ||||||||||||
| or | ||||||||||||
|
|
||||||||||||
| ```bash with pnpm | ||||||||||||
| cd module/web | ||||||||||||
| cd modules/web | ||||||||||||
| pnpm run build | ||||||||||||
| API_SERVER={api module address} pnpm run start | ||||||||||||
| Example: API_SERVER=http://127.0.0.1:8080 pnpm run dev | ||||||||||||
| API_SERVER=http://127.0.0.1:8080 pnpm run dev | ||||||||||||
| ``` | ||||||||||||
|
|
||||||||||||
| ### Login with token | ||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The pull request description mentions adding notes on token expiry and the importance of least-privilege RBAC for production environments. These notes seem to be missing. Adding them would provide valuable security context for users. For example, you could add a note that the |
||||||||||||
|
|
@@ -93,10 +90,12 @@ Example: API_SERVER=http://127.0.0.1:8080 pnpm run dev | |||||||||||
| kubectl create serviceaccount curl-user -n kube-system | ||||||||||||
| kubectl create clusterrolebinding curl-user-binding --clusterrole=cluster-admin --serviceaccount=kube-system:curl-user -n kube-system | ||||||||||||
|
|
||||||||||||
| # For Kubernetes 1.23 and earlier: | ||||||||||||
| kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep curl-user | awk '{print $1}') | ||||||||||||
| # For Kubernetes 1.24 and later: | ||||||||||||
| kubectl create token curl-user -n kube-system | ||||||||||||
| # For Kubernetes 1.23 and earlier: | ||||||||||||
| kubectl -n kube-system describe secret $( | ||||||||||||
| kubectl -n kube-system get secret | grep curl-user | awk '{print $1}' | ||||||||||||
| ) | ||||||||||||
| ``` | ||||||||||||
|
|
||||||||||||
| ## Contributing | ||||||||||||
|
|
||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pull request description mentions adding a Windows PowerShell example for setting the
API_SERVERenvironment variable, but it seems to be missing from the changes. It would be great to include it for Windows users.For example: