mirror of
https://github.com/labring/sealos.git
synced 2026-09-24 15:46:19 +08:00
chore(kubepanel):update README.md (#4703)
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
## How to dev
|
||||
|
||||
1. First,you should refer to `frontend/README.md` ’s `How to dev` part.
|
||||
|
||||
2. Then you should config your env.
|
||||
|
||||
1. Create a new file `.env.local` in frontend/providers/kubepanel directory.
|
||||
|
||||
2. ```
|
||||
NEXT_PUBLIC_MOCK_USER=""
|
||||
SEALOS_DOMAIN="dev.sealos.top"
|
||||
NODE_ENV="development"
|
||||
```
|
||||
|
||||
3. Then we should get our `NEXT_PUBLIC_MOCK_USER`
|
||||
|
||||
1. go to `dev.sealos.top` and login (firstly you goin this website,you are signuping,so go on.)
|
||||
|
||||
2. Refer this picture,you should open `Console-application`,and get your own `session.state.session.kubeconfig`,copy as JSON string.
|
||||
|
||||

|
||||
|
||||
3. After that,have your own `test 3000 `page
|
||||
|
||||
> Why you should have that?
|
||||
>
|
||||
> If you open your own dev in `localhost:3000` directly,you cannot have sealos desktop border,which maybe influence your style.
|
||||
|
||||
1. This url:[website](https://dev.sealos.top/?openapp=system-template%3FtemplateName%3Done-step-shortcuts)
|
||||
|
||||
2. 
|
||||
|
||||
3. Refresh website.
|
||||
|
||||
4. Then you can get your own dev in this.
|
||||
|
||||

|
||||
Reference in New Issue
Block a user