In this tutorial, we are going to build a simple CRUD application to show how typical development with cloud- native-coding works.
I am using the following quite simple example Build a simple app using Node JS and MySQL
- Clone the demo repository with
git clone https://github.com/Cloud-Native-Coding/cnde-example-dev-project.git
- In folder config execute
k apply -k .
to install required Kubernetes resources - install MySQL extension VS-Code MySQL Extension
- create a new connection to host
stage-mysql
, userroot
and passwordUyH2EccNqK
- create DB and Table as written in the extension documentation
sudo apt update
sudo apt install nodejs
sudo apt install npm
- Install nodemon with
sudo npm install nodemon -g
- execute
npm install
- Start application with
nodemon app.js
- point your browser to
players.norbert.kubeplatform.ch.innoq.io
- edit code to review live changes