Added missing example in tutorial

This commit is contained in:
mdnapo 2024-09-22 17:33:47 +02:00
parent 128ae21088
commit 4b0d1df34f
5 changed files with 8402 additions and 63 deletions

View File

@ -40,8 +40,23 @@ $ GIT_USER=<Your GitHub username> yarn deploy
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
### Build Docker image
### Custom
```bash
docker build -t git.devdisciples.com/devdisciples/m4gdocs:latest -t m4gdocs:latest .
```
kubectl --kubeconfig ~/.kube/main.k8s.config apply -f .k8s/remote.yml
### Push Docker image
```bash
docker push git.devdisciples.com/devdisciples/m4gdocs:latest
```
### Update in Kubernetes Cluster
Update the image by deleting the old pod, this will automatically pull in the latest image and deploy it.
Run the following command on the relevant node to achieve this.
```bash
kubectl delete pods -l app=m4g-docs
```

View File

@ -1,25 +0,0 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.002.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MyTest.Plugin", "MyTest.Plugin\MyTest.Plugin.csproj", "{C93CD889-7228-4DA2-B0E2-5273F2FAAFE6}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C93CD889-7228-4DA2-B0E2-5273F2FAAFE6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C93CD889-7228-4DA2-B0E2-5273F2FAAFE6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C93CD889-7228-4DA2-B0E2-5273F2FAAFE6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C93CD889-7228-4DA2-B0E2-5273F2FAAFE6}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {241D0F32-CE9B-40CA-BEA2-A2554CA22824}
EndGlobalSection
EndGlobal

View File

@ -16,6 +16,10 @@ The commands in this tutorial assume that you are running them from the root dir
Open a terminal and navigate (`cd`) to the directory where your project should be created.
Run the following command to initialize a new project and open it in VSCode:
```bash
m4g init todo-app
```
## Setup the database
Our todo app needs to keep track of todos, so it needs a storage mechanism of some sorts. A database should be one
@ -55,7 +59,7 @@ If you've already initialized a project, you can also change the platform prefix
### Create the entities
Now that the database is running, we can start to create our entities. Run the commands below to create the `Todo` &
Now that the database is running, we can start creating our entities. Run the commands below to create the `Todo` &
`Tag` entities.
```bash

View File

@ -1,35 +0,0 @@
asgiref==3.5.0
blinker==1.4
click==8.0.3
colorama==0.4.4
command-not-found==0.3
cryptography==3.4.8
dbus-python==1.2.18
distro==1.7.0
distro-info==1.1+ubuntu0.2
h11==0.13.0
httplib2==0.20.2
importlib-metadata==4.6.4
jeepney==0.7.1
keyring==23.5.0
launchpadlib==1.10.16
lazr.restfulclient==0.14.4
lazr.uri==1.0.6
more-itertools==8.10.0
netifaces==0.11.0
oauthlib==3.2.0
PyGObject==3.42.1
PyJWT==2.3.0
pyparsing==2.4.7
python-apt==2.4.0+ubuntu3
PyYAML==5.4.1
SecretStorage==3.3.1
six==1.16.0
systemd-python==234
ubuntu-pro-client==8001
ufw==0.36.1
unattended-upgrades==0.1
uvicorn==0.15.0
wadllib==1.3.6
wsproto==1.0.0
zipp==1.0.0

8380
docs/yarn.lock Normal file

File diff suppressed because it is too large Load Diff