This example shows how to leverage Okteto to develop a Node.js + React Sample App directly in Kubernetes.
The Node + React Sample App is composed by the following components:
- A very simple Node.js API using Express. Deployed using a Helm Chart.
- A MongoDB database. Deployed using a public Helm Chart
- A frontend in React, defined in a different Github Repository.
Deploy the app on Okteto Cloud by clicking the following button:
Alternatively, you can clone this repo and run okteto deploy
.
Once your app is Running, execute the following command to activate your development container:
$ okteto up
✓ Development container activated
✓ Files synchronized
Namespace: cindy
Name: web
Forward: 9229 -> 9229
27017 -> mongodb:27017
Welcome to your development container. Happy coding!
cindy:api src>
Run the app by executing the following command:
cindy:api src> yarn start
Start the app in debug mode by executing the following command:
cindy:api src> yarn debug