Skip to content

codeformuenster/muenster-jetzt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

muenster-jetzt

Deployment

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 deployment

Staging follows the master branch.

Production deployment

The production should run the lastest git tag.

Dev Setup with VS Code

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.

Intro

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.)

Pre-Requirements

Install the following things:

To understand the details behind this, take a look at these links:

Configure your environment

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!

Run the code

  • Open this project in Visual Studio Code
  • Use the command "Remote-Container: Open Folder in Container" (from Menu -> View -> Command Palette)
  • select the backend folder (this will reload visual studio, start the container and will give you an editor instance with all the required plugins etc)
  • leave that window open, repeat all of the above steps in a new Visual Studio Code Window but select the frontend folder instead of backend
  • The Readmes of their respective folders contains more information on starting the development environment

🎉 congrats you are now running your dev environment

Final Notes

This setup does a few cool things:

  • forwards your ssh agent to allow git push from within the container
  • exposes the container ports in a way that network access from the host looks is like local host access in the container (no need to bind to 0.0.0.0)