Skip to content

Commit 6bfb936

Browse files
authored
Merge pull request #6 from it-at-m/MUXDBS-112-initial-webcomp-setup
muxdbs 112 initial webcomp setup
2 parents dee5a5c + a68e8c7 commit 6bfb936

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+8708
-1
lines changed

.github/README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,30 @@
2929
[![Made with love by it@M][made-with-love-shield]][itm-opensource]
3030
[![GitHub license][license-shield]][license]
3131

32-
The repository contains components for the Digital Citizen Service of the City of Munich. It currently includes the personalization service. In the future, the repository will be expanded to include web components for the Digital Citizen Service.
32+
The repository contains components for the Digital Citizen Service of the City of Munich. It currently includes the personalization service and it's corresponding webcomponents.
33+
34+
In the future, the repository will be expanded to include the other artifacts which form the Digital Citizen Service.
3335

3436
## Build with
37+
3538
The project is built with technologies we use in our projects ([reference architecture][refarch-documentation]):
3639

3740
- [Spring][spring-documentation]
3841
- [Vue.js][vuejs-documentation]
3942

4043
## Getting Started
4144

45+
### personalization-service
46+
4247
1. Build it with `mvn clean install`
4348
2. Run the stack using `docker-compose` in the stack folder
4449
3. Run the PersonalizationServiceApplication
4550

51+
### personalization-webcomponents
52+
53+
1. Install dependencies with `npm i`
54+
2. Run local dev server with `npm run dev`
55+
4656
## Contributing
4757

4858
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_NODE_ENV=development
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_NODE_ENV=production
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Omits the resolved property (with specific reference to the npm repository) from the lockfile.
2+
omit-lockfile-registry-resolved=true
3+
# Enforces the use of the defined npm versions in package.json, otherwise `npm install` will fail
4+
engine-strict=true
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist
2+
node_modules
3+
processes/post-build.js
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"@muenchen/prettier-codeformat"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# For documentation see https://github.com/sclorg/nginx-container
2+
FROM registry.access.redhat.com/ubi10/nginx-126:10.0-1747618876@sha256:d1866194c76ee988f6a0777292bbb7421f3bfc7637f43e41e8ad8512ae218cde
3+
4+
# Copy built web components
5+
COPY dist .
6+
7+
# Copy custom nginx configurations
8+
COPY docker/nginx/*.conf "${NGINX_DEFAULT_CONF_PATH}"
9+
10+
# Start the web server
11+
CMD ["nginx", "-g", "daemon off;"]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// This file is used to declare TypeScript modules for libraries that don't export own types (e.g. JavaScript libraries).
2+
// Note: Before adding module declarations here please check if types can be installed via https://github.com/DefinitelyTyped/DefinitelyTyped for your specific library.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
gzip on;
2+
gzip_http_version 1.1;
3+
gzip_min_length 1100;
4+
gzip_vary on;
5+
gzip_proxied expired no-cache no-store private auth;
6+
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
7+
gzip_comp_level 9;
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
location / {
2+
add_header 'Access-Control-Allow-Origin' $allow_origin;
3+
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
4+
5+
location /src/ {
6+
expires 365d;
7+
add_header 'Access-Control-Allow-Origin' $allow_origin;
8+
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
9+
add_header Cache-Control "public, no-transform";
10+
}
11+
12+
location ~ ^/loader-.*\.js$ {
13+
add_header 'Access-Control-Allow-Origin' $allow_origin;
14+
add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS' always;
15+
add_header Cache-Control 'no-cache';
16+
}
17+
}

0 commit comments

Comments
 (0)