-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from kubero-dev/release/v2.4.6
Release/v2.4.6
- Loading branch information
Showing
3 changed files
with
85 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,45 @@ | ||
# Local development | ||
|
||
## Prerequisites | ||
- A running Kubernetes cluster. This can be a local cluster like [kind](https://kind.sigs.k8s.io/) or a remote cluster like [GKE](https://cloud.google.com/kubernetes-engine). | ||
- [Node.js](https://nodejs.org/en/) and [Yarn](https://yarnpkg.com/) installed on your local machine. | ||
- Fully install kubero on your cluster by running ```kubero install``` | ||
|
||
|
||
## Create a Fork | ||
Fork the repository to your own GitHub account. | ||
|
||
## Clone the repository | ||
```bash | ||
git clone [email protected]:kubero-dev/kubero.git | ||
copy .env.template .env | ||
git clone [email protected]:your-github-account/kubero.git | ||
``` | ||
|
||
## export your kubernetes config | ||
In case you are using a local cluster like kind, you can export the kubeconfig to the local directory. | ||
```bash | ||
kind get kubeconfig --name kubero-001 > ./kubeconfig | ||
``` | ||
Make sure the context in your kubeconfig the same as in the .env file KUBERO_CONTEXT | ||
|
||
## Start the UI Backend | ||
Open the first terminal. Configure the local ENV values according your needs. Change to the server directory to start the server. | ||
```bash | ||
cd server | ||
cp .env.template .env | ||
yarn dev | ||
``` | ||
|
||
## Build the Client UI | ||
Open a second terminal and change to the client directory. Install the dependencies and start the client. | ||
```bash | ||
cd client | ||
yarn dev | ||
yarn watch | ||
``` | ||
|
||
## Access the UI | ||
Open your browser and navigate to [http://localhost:3000](http://localhost:3000) | ||
|
||
## Happy coding | ||
This is how my terminal looks like after starting the server and the client. | ||
|
||
 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters