We use GitHub Actions to build and push the application container images to Docker Hub (frontend, backend). The rest of the deployment is handeled on a kubernetes cluster (Kustomization files).
Deployments live at https://staging.muenster-update.de (Staging API) and https://muenster-update.de (Production API).
Staging follows the master
branch.
The production should run the lastest git tag.
If you don't want to use VS Code or the proprietary remote development extension pack, check the README files of the back and frontend.
There is no need to clutter your dev machine with different versions of every tool (like nodejs, python). We are using docker containers as a dev environment to leave your host in a clean state and prevent "works on my mashine" bugs. This guide will help you to setup everything in a convenient way without the typical drawbacks of developing in a container (e.g. no debugging, missing code completion etc.)
Install the following things:
To understand the details behind this, take a look at these links:
within the backend folder: Copy the .env.example
into a .env
file and edit the content to your needs. This is only a dev setup but please choose at least unique passwords!
backend
folder (this will reload visual studio, start the container and will give you an editor instance with all the required plugins etc)frontend
folder instead of backend
🎉 congrats you are now running your dev environment
This setup does a few cool things:
0.0.0.0
)