Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lencodes authored Jul 25, 2023
0 parents commit 90260b8
Show file tree
Hide file tree
Showing 89 changed files with 35,873 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=skeleton-app
##################################################

# 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!
93 changes: 93 additions & 0 deletions .github/workflows/product-page-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: Deploy the Product Page to GitHub Pages

env: # Change these to your preferences any image url can also be a base encoded image
GITHUB_PAGES_BRANCH: gh-pages

# Connected Repository
GITHUB_REPOSITORY_NAME: ${{ github.event.repository.name }}
GITHUB_REPOSITORY_URL: ${{ github.event.repository.url }}
GITHUB_API_BASE_URL: https://api.github.com/repos/${{ github.repository }}/contents
GITHUB_DOCS_DIRECTORY_PATHS: '[{"name": "Features", "location": "/docs/features"},{"name": "Roadmap", "location": "/docs/roadmap"}]'

# Links
SLACK_URL: "https://join.slack.com/t/conductionworkspace/shared_invite/zt-1y5kerime-amWEvljvnLvo5S3YfU_jzg"
READ_THE_DOCS_URL: "https://commongateway.readthedocs.io/en/latest/"

# Navbar
NAVBAR_LOGO_URL: "https://conduction.nl/wp-content/uploads/2021/07/cropped-conductionlogo-1.png"

# Footer
FOOTER_LOGO_URL: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDIwMDEwOTA0Ly9FTiIKICAgICJodHRwOi8vd3d3LnczLm9yZy9UUi8yMDAxL1JFQy1TVkctMjAwMTA5MDQvRFREL3N2ZzEwLmR0ZCI+CjxzdmcgdmVyc2lvbj0iMS4wIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgICAgd2lkdGg9IjcxLjAwMDAwMHB0IiBoZWlnaHQ9IjcwLjAwMDAwMHB0IiB2aWV3Qm94PSIwIDAgNzEuMDAwMDAwIDcwLjAwMDAwMCIKICAgICBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0Ij4KCiAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCw3MC4wMDAwMDApIHNjYWxlKDAuMTAwMDAwLC0wLjEwMDAwMCkiCiAgICAgICBmaWxsPSIjNDM3NkZDIiBzdHJva2U9Im5vbmUiPgogICAgICAgIDxwYXRoIGQ9Ik0yMTggNTkyIGwtMTM3IC03NyAwIC0xNjUgMCAtMTY1IDEzMSAtNzQgYzcyIC00MSAxMzcgLTc0IDE0MyAtNzQgNgowIDcwIDMzIDE0MyA3NCBsMTMxIDc0IDEgMTY1IDAgMTY1IC02OCAzNyBjLTM3IDIxIC05OSA1NiAtMTM3IDc3IGwtNzEgNDAKLTEzNiAtNzd6IG0yOTUgLTg1IGw1NyAtMzIgMCAtMTI1IDAgLTEyNSAtMTA2IC02MCBjLTU4IC0zMyAtMTA4IC02MCAtMTExCi01OSAtMyAwIC01MiAyNyAtMTA5IDYwIGwtMTAzIDU5IDAgMTI1IDAgMTI1IDEwNyA2MSAxMDcgNjIgNTAgLTI5IGMyNyAtMTYKNzYgLTQ0IDEwOCAtNjJ6Ii8+CiAgICAgICAgPHBhdGggZD0iTTI3OCA0NzIgbC02OCAtMzcgMCAtODUgMCAtODUgNzMgLTM5IDczIC0zOSA2MiAzNCBjMzQgMTggNjIgMzcgNjIKNDEgMCA0IC0xNCAxNSAtMzEgMjMgLTI4IDE1IC0zMyAxNSAtNTQgMSAtMzEgLTIwIC00NiAtMjAgLTg0IDIgLTI3IDE1IC0zMQoyMiAtMzEgNjIgMCA0MCA0IDQ3IDMxIDYzIDM4IDIxIDUzIDIxIDg0IDEgMjEgLTE0IDI2IC0xNCA1NCAxIDE3IDggMzEgMTkgMzEKMjMgMCA4IC0xMTMgNzIgLTEyNiA3MiAtNSAwIC0zOSAtMTcgLTc2IC0zOHoiLz4KICAgIDwvZz4KPC9zdmc+Cg=="
FOOTER_LOGO_HREF: "https://conduction.nl"

# Jumbotron
JUMBOTRON_TITLE: "Product Website Template"
JUMBOTRON_SUBTITLE: "Product page"
JUMBOTRON_DESCRIPTION: ${{ github.event.repository.description }}
JUMBOTRON_SVG: "https://www.conduction.nl/wp-content/uploads/2021/07/cropped-Conduction_HOME_0000_afb1-1.png"

# Other
FAVICON_URL: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDIwMDEwOTA0Ly9FTiIKICAgICJodHRwOi8vd3d3LnczLm9yZy9UUi8yMDAxL1JFQy1TVkctMjAwMTA5MDQvRFREL3N2ZzEwLmR0ZCI+CjxzdmcgdmVyc2lvbj0iMS4wIi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IxIDg0IDEgMjEgLTE0IDI2IC0xNCA1NCAxIDE3IDggMzEgMTkgMzEKMjMgMCA4IC0xMTMgNzIgLTEyNiA3MiAtNSAwIC0zOSAtMTcgLTc2IC0zOHoiLz4KICAgIDwvZz4KPC9zdmc+Cg=="

# NL Design Theme
NL_DESIGN_THEME_CLASSNAME: "conduction-theme"

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Get the Product Website Template Code
uses: actions/checkout@v2
with:
repository: ConductionNL/product-website-template
ref: main

# With special thanxs to https://github.com/SpicyPizza/create-envfile
- name: Make envfile
uses: SpicyPizza/[email protected]
with:
envkey_GITHUB_REPOSITORY_NAME: ${{ env.GITHUB_REPOSITORY_NAME }}
envkey_GATSBY_GITHUB_API_BASE_URL: ${{ env.GITHUB_API_BASE_URL }}
envkey_GATSBY_FAVICON_URL: ${{ env.FAVICON_URL }}
envkey_GATSBY_NAVBAR_LOGO_URL: ${{ env.NAVBAR_LOGO_URL }}
envkey_GATSBY_GITHUB_DOCS_DIRECTORY_PATHS: ${{ env.GITHUB_DOCS_DIRECTORY_PATHS }}
envkey_GATSBY_READ_THE_DOCS_URL: ${{ env.READ_THE_DOCS_URL }}
envkey_GATSBY_SLACK_URL: ${{ env.SLACK_URL }}
envkey_GATSBY_GITHUB_REPOSITORY_URL: ${{ env.GITHUB_REPOSITORY_URL }}
envkey_GATSBY_JUMBOTRON_TITLE: ${{ env.JUMBOTRON_TITLE }}
envkey_GATSBY_JUMBOTRON_SUBTITLE: ${{ env.JUMBOTRON_SUBTITLE }}
envkey_GATSBY_JUMBOTRON_DESCRIPTION: ${{ env.JUMBOTRON_DESCRIPTION }}
envkey_GATSBY_JUMBOTRON_SVG: ${{ env.JUMBOTRON_SVG }}
envkey_GATSBY_FOOTER_LOGO_URL: ${{ env.FOOTER_LOGO_URL }}
envkey_GATSBY_FOOTER_LOGO_HREF: ${{ env.FOOTER_LOGO_HREF }}
envkey_GATSBY_NL_DESIGN_THEME_CLASSNAME: ${{ env.NL_DESIGN_THEME_CLASSNAME }}
directory: pwa/static
file_name: .env.production
fail_on_empty: true
sort_keys: false

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 14

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

- name: Remove old Gatsby cache
run: rm -rf pwa/.cache

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

- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: ${{ env.GITHUB_PAGES_BRANCH }}
folder: pwa/public
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.idea/

pwa/.cache
pwa/node_modules
pwa/public
38 changes: 38 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"overrides": [
{
"files": ["*.json"],
"options": {
"parser": "json",
"printWidth": 120,
"tabWidth": 2
}
},
{
"files": ["*.ts", "*.tsx"],
"options": {
"parser": "typescript",
"printWidth": 120,
"trailingComma": "all",
"tabWidth": 2,
"singleQuote": false
}
},
{
"files": ["*.css", "*.scss"],
"options": {
"parser": "css",
"tabWidth": 2
}
},
{
"files": ["conduction.css"],
"options": {
"parser": "css",
"trailingComma": "all",
"tabWidth": 2,
"printWidth": 150
}
}
]
}
Loading

0 comments on commit 90260b8

Please sign in to comment.