Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
remko48 authored Dec 18, 2023
0 parents commit be25fd4
Show file tree
Hide file tree
Showing 200 changed files with 47,782 additions and 0 deletions.
188 changes: 188 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
##################################################

# Application settings

##################################################

# This section contains generic settings for your application

# The shortcode for this component, should be a small set of letters reprecentint the application (use only letters, capitals and spaces)

APP_NAME=skeleton-app
APP_NAME_TECHNCICAL=skeleton-app

# The description for this api

APP_DESCRIPTION=skeleton-app

# The current version of the application

APP_VERSION=V1.0
APP_MAJOR_VERSION=v1

# The type either application or component

APP_TYPE=component

##################################################

# Security

##################################################

# The urls/ip's and hosts on wich this api is available

TRUSTED_PROXIES=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
TRUSTED_HOSTS=

# Key that other applications can use to connect to this application (hier mag wel iets meer toelichtende tekst bij)

APP_APPLICATION_KEY=45c1a4b6-59d3-4a6e-86bf-88a872f35845

##################################################

# Licensing / Copyright

##################################################

# The owner (copyright holder) of the code base

OWNER_NAME=Conduction
OWNER_URL=https://www.conduction.nl

# The licence type (the licence file should always be located in the root of the code base as LICENCE.md)

LICENCE_NAME=EUPL

##################################################

# Helm / Artifacthub settings

##################################################

# The logo for this application (used on the api doc page, in helm files and on Artifacthub)

APP_LOGO=https://conductionnl.github.io/images/conduction_avatar_blue_on_transparant.svg

# The addres where more information about this application can be found (used on the api doc page, in helm files and on Artifacthub)

APP_HOME=https://www.conduction.nl

# The id of this application on https://artifacthub.io/ (use false if you do not want to use artifacthub)

ARTIFACTHUB_ID=

# name of the organization leave blank to not sure organization

ARTIFACTHUB_USER=
##################################################

# Routing and domain settings

##################################################

# The domain for this component (do not include a subdomain, this will hamper certification generation)

APP_DOMAIN=conduction.nl

# The subdomain for this component (should be false if you want to use www)

APP_URL=http://localhost
APP_SUBDOMAIN=skeleton-app
APP_SUBPATH=skeleton-app
APP_SUBPATH_ROUTING=true

APP_DEMO=as.zaakonline.nl

# Whether or not the component is to be exposed publicly

APP_WEB=false

# Whether or not to default cluster internal calls on kubernetes

APP_INTERNAL=false

##################################################

# Github settings

##################################################

# organization/repo-name

APP_CHART=ConductionNL/skeleton-app

# The GIT Repository for this component (The place where the sourcecode is stored)

APP_REPRO=https://github.com/ConductionNL/skeleton-app

##################################################

# Docker settings

##################################################

CONTAINER_REGISTRY_BASE=ghcr.io/conductionnl
HELM_REPOSITORY=https://raw.githubusercontent.com/ConductionNL/skeleton-app/master/api/helm/
CONTAINER_PROJECT_NAME=woo-website
##################################################

# Notifcation settings

##################################################

NOTIFICATION_ENABLED=false

##################################################

# Authorization settings

##################################################

AUTH_ENABLED=false

##################################################

# Development Settings

##################################################

# This sections contains options for configuring your local development environment

APP_ID=

# Do you want to display the symfony debug toolbar?

APP_DEBUG=1

# What is the enviroment type you want to use for local production? (choose between dev, stag, prod, acce or test)

APP_ENV=dev

# We use a build to tag images, this is swithced to the version on master and to env on other branches

APP_BUILD=dev

# Do you want to use caching? true/false

APP_CACHE=false

# Whether or not to include ALL datafixtures in a build (used for testing purposes in ci/cd)

APP_BUILD_ALL_FIXTURES=true

# Whether to enable or disable audit trials

AUDITTRAIL_ENABLED=false

# the duration of the session in seconds

APP_SESSION_DURATION=900

##################################################

# RabbitMQ

##################################################
RABBITMQ_USERNAME=common-gateway
RABBITMQ_PASSWORD=changeme!
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Bugmelding
description: Meld een probleem of fout
title: "[Bug]: "
labels: [bug]
body:
- type: textarea
id: bug-description
attributes:
label: Beschrijving van de bug
placeholder: "Beschrijf wat er gebeurde toen de bug optrad."
validations:
required: true
- type: textarea
id: reproduce-steps
attributes:
label: Stappen om te reproduceren
placeholder: "Beschrijf de stappen die nodig zijn om de bug opnieuw te laten optreden."
validations:
required: true
99 changes: 99 additions & 0 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
name: Docker Image CI

on:
pull_request:
branches:
- main
- development
push:
branches:
- main
- development

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- name: Export release code
if: (success() || failure())
id: releasecode #version number in a more comprehensible format: 0.1.YearMonthDay in UTC
run: |
export VERSION=$(grep APP_VERSION= .env | cut -d '=' -f2)
export RELEASE=$VERSION.$(date --utc +%y%m%d)
echo "RELEASE=$RELEASE" >> $GITHUB_ENV
echo "##[set-output name=releasename]$RELEASE"
- name: Setting APP_NAME
run: |
export NAME=$(grep APP_NAME= .env | cut -d '=' -f2)
echo "APP_NAME=$NAME" >> $GITHUB_ENV
- name: Print app name
run: echo "APP_NAME = $APP_NAME"
- name: Setting APP_ENV to dev
run: |
echo "APP_ENV=dev">> $GITHUB_ENV
echo "APP_BUILD=dev">> $GITHUB_ENV
echo "set APP_ENV to $APP_ENV"
- name: Setting APP_ENV to prod
if: contains( github.ref, 'main' ) || contains( github.base_ref, 'main' )
run: |
echo "APP_ENV=latest">> $GITHUB_ENV
echo "APP_BUILD=latest">> $GITHUB_ENV
echo "set APP_ENV to $APP_ENV"
- name: Print definitive APP_ENV
run: echo "APP_ENV is now $APP_ENV and APP_BUILD is now $APP_BUILD"
- name: Build the Docker image
run: docker-compose build --build-arg APP_ENV=$APP_ENV --build-arg APP_BUILD=$APP_BUILD --build-arg APP_BUILD_ALL_FIXTURES=true
- name: Run the docker image
run: docker-compose up -d
- name: Taking some sleep (for containers to come up)
run: sleep 20
- name: Check if all containers are running
run: docker ps
- name: Dumping the logs
run: docker-compose logs
- name: Show all images
run: docker images
- name: Login to Container Registry
id: containerregistry-login
run: |
if [ "${{ secrets.GITHUB_TOKEN }}" != "" ]; then
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $(cut -d'/' -f1 <<< $GITHUB_REPOSITORY) --password-stdin
echo "##[set-output name=success;]true"
else
echo "##[set-output name=success;]false"
fi
- if: steps.containerregistry-login.outputs.success == 'true' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/development')
name: Push to Container Registry
run: docker-compose push

- if: steps.containerregistry-login.outputs.success == 'true' && github.ref == 'refs/heads/main'
name: Push versioned containers to Container Registry
id: version-push
run: |
images=$(docker-compose images -q | xargs docker inspect --format='{{ index .RepoTags 0}}' | cut -d':' -f1 | grep $APP_NAME)
for image in $images
do
docker push "${image}":"${APP_BUILD}"
done
- name: Print release name
if: (success() || failure())
run: echo $RELEASENAME
env:
RELEASENAME: ${{ steps.releasecode.outputs.releasename }}
- name: Create Release
if: contains( github.ref, 'main' ) && steps.version-push.outputs.success == 'true' && ( success() || failure() )
id: create_release
uses: actions/create-release@v1
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ steps.releasecode.outputs.releasename }}
release_name: ${{ steps.releasecode.outputs.releasename }}
draft: false
prerelease: false
- name: Chores
if: (success() || failure())
run: docker-compose down
19 changes: 19 additions & 0 deletions .github/workflows/plantuml.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generates SVG files from UML files (for documentation purposes)
name: generate plantuml
on: push
jobs:
generate_plantuml:
runs-on: ubuntu-latest
name: plantuml
steps:
- name: checkout
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: plantuml
id: plantuml
uses: grassedge/[email protected]
with:
message: "Render PlantUML files"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34 changes: 34 additions & 0 deletions .github/workflows/product-page-deploy.yml

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions .github/workflows/pull-request-build-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build Check

on:
pull_request:
branches:
- development
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Remove cache, modules and public
run: rm -rf pwa/node_modules && rm -rf pwa/.cache && rm -rf pwa/public

- name: Parcel/watcher
run: npm i @parcel/watcher

- name: Install dependencies
run: cd pwa && npm i

- name: Build
run: cd pwa && npm run build
Loading

0 comments on commit be25fd4

Please sign in to comment.