{"id":18538956,"url":"https://github.com/simonthorell/system-integration","last_synced_at":"2026-04-13T06:02:53.721Z","repository":{"id":256282757,"uuid":"844914691","full_name":"simonthorell/system-integration","owner":"simonthorell","description":"Template for building simple web-apps using with Vue (TypeScript) frontend and Java Springboot backend with a MySQL database. Docker is utilized to make the dev environment very simple to get up and running.","archived":false,"fork":false,"pushed_at":"2024-09-03T12:56:08.000Z","size":2963,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-04T06:29:53.545Z","etag":null,"topics":["docker-compose","java","mysql","quasar-framework","springboot","typescript","vue"],"latest_commit_sha":null,"homepage":"","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonthorell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-20T08:05:47.000Z","updated_at":"2024-09-10T17:10:04.000Z","dependencies_parsed_at":"2024-09-10T01:46:49.241Z","dependency_job_id":null,"html_url":"https://github.com/simonthorell/system-integration","commit_stats":null,"previous_names":["simonthorell/system-integration"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simonthorell/system-integration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonthorell%2Fsystem-integration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonthorell%2Fsystem-integration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonthorell%2Fsystem-integration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonthorell%2Fsystem-integration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonthorell","download_url":"https://codeload.github.com/simonthorell/system-integration/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonthorell%2Fsystem-integration/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31741541,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T05:13:27.074Z","status":"ssl_error","status_checked_at":"2026-04-13T05:13:25.150Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker-compose","java","mysql","quasar-framework","springboot","typescript","vue"],"created_at":"2024-11-06T19:45:39.212Z","updated_at":"2026-04-13T06:02:53.678Z","avatar_url":"https://github.com/simonthorell.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# System Integration\n\nThis project demonstrates how you use Kubernetes to orchestrate a simple web-app.\n\nThis project utlize TypeScript/Vue/Quasar for the frontend, Java Spring Boot with JDBC for the backend and MySQL for database - all running in separated containers/pods.\n\n\u003c!-- ## SQL Database ER-Diagram\n\u003cimg src=\"resources/er_diagram.png\" width=\"450\" height=\"450\" alt=\"ER-Diagram\"\u003e --\u003e\n\n## Front- and Backend Setup\n\n1. Create monolit git repo\n2. Create frontend and backend projects:\n\n- Frontend: Quasar CLI: `npm init quasar`\n- `cd frontend` and `npm install` (for dev dependencies)\n- Backend: Create Spring Boot install file with Maven - https://start.spring.io/\n- Add the following in /backend/pom.xml:\n\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.springframework.boot\u003c/groupId\u003e\n    \u003cartifactId\u003espring-boot-starter-web\u003c/artifactId\u003e\n\u003c/dependency\u003e\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.mysql\u003c/groupId\u003e\n    \u003cartifactId\u003emysql-connector-j\u003c/artifactId\u003e\n    \u003cscope\u003eruntime\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n\n3. Rename the respective folders from the default names to frontend/backend\n\n## Install MySQL\n\n1. Install with homebrew: `brew install mysql`\n2. Run: `brew services start mysql`\n3. Secure/Set password: `mysql_secure_installation`\n4. Verify: `mysql --version`\n\n### Grant Access to User\n\n1. `docker exec -it db-mysql mysql -u root -p` and enter root pw.\n2. Create New User:\n\n- `CREATE USER 'myuser'@'%' IDENTIFIED BY 'mypassword';`\n- `GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%';`\n- `FLUSH PRIVILEGES;`\n- `SHOW GRANTS FOR 'myuser'@'%';`\n- Test User: `mysql -h 127.0.0.1 -P 3307 -u myuser -p`\n\n## Test Spring Boot REST API\n\n1. Start up all instances with `docker-compose up`\n2. In the `src/main/resources/application.properties` file in backend we exponse port 5000 to the docker network by adding `server.port=5000`.\n3. Open a docker interactive shell on frontend instance `docker exec -it frontend /bin/sh`\n4. Use curl to test the API: `curl \"http://backend:5000/customers/who-bought?productName=Blue%20Jeans\u0026color=Blue\u0026size=L\u0026brand=DenimCo\"`\n\n## Setup \u0026 Run Kubernetes Cluster\n\nBelow instructions only apply for macOS.\n\n1. Install Kubernetes kompose: `brew install kompose`\n2. Install Minicube: `brew install minikube`\n3. Run command: `kompose convert`\n4. Start Docker Application\n5. Start Minicube: `minikube start`\n6. Run `apply-k8.sh` to add files to minicube.\n7. Open minikube dashboard: `minikube dashboard`\n\n### Minikube commands:\n\n- Delete all pods: `kubectl delete all --all`\n- Apply manifest: `kubectl apply -f k8s-manifest.yaml`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonthorell%2Fsystem-integration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonthorell%2Fsystem-integration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonthorell%2Fsystem-integration/lists"}