Skip to content

vfarcic/silly-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,692 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Silly Demo

Demo Manifests and Code Used in DevOps Toolkit Videos

Remote Environments with Dev Containers and Devpod: Are They Worth It? Say Goodbye to Tedious Docker Commands: Embrace Docker to Bake Images Stop Losing Requests! Learn Graceful Shutdown Techniques

Common

chmod +x dot.nu

./dot.nu setup --provider kind

source .env

Backend with CNPG PostgreSQL

./dot.nu apply cnpg

./dot.nu apply atlas

kcl run kcl/main.k -D db.enabled=true \
    | kubectl --namespace a-team apply --filename -

curl "http://silly-demo.127.0.0.1.nip.io"

curl -X POST "http://silly-demo.127.0.0.1.nip.io/video?id=1&title=something"

curl -X POST "http://silly-demo.127.0.0.1.nip.io/video?id=2&title=else"

curl "http://silly-demo.127.0.0.1.nip.io/videos" | jq .

Both frontend and backend with CNPG PostgreSQL

./dot.nu apply cnpg

./dot.nu apply atlas

kcl run kcl/main.k -D db.enabled=true -D frontend.enabled=true \
    | kubectl --namespace a-team apply --filename -

kubectl --namespace a-team \
    get all,ingresses,secrets,clusters,atlasschemas

curl -X POST "http://silly-demo.127.0.0.1.nip.io/video?id=1&title=something"

curl -X POST "http://silly-demo.127.0.0.1.nip.io/video?id=2&title=else"

curl "http://silly-demo.127.0.0.1.nip.io/videos" | jq .

Unit Tests

./dot.nu run unit_tests

Integration Tests

./dot.nu deploy app

source .env

./dot.nu run integration_tests

./dot.nu destroy app

Destroy

./dot.nu destroy $PROVIDER

exit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors