{"id":15091499,"url":"https://github.com/frostmarked/bongateway","last_synced_at":"2026-01-19T04:32:49.692Z","repository":{"id":38462505,"uuid":"280128319","full_name":"frostmarked/bonGateway","owner":"frostmarked","description":"Front-end project for limousin.se","archived":false,"fork":false,"pushed_at":"2023-01-06T20:19:23.000Z","size":12515,"stargazers_count":1,"open_issues_count":42,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-11T17:11:42.102Z","etag":null,"topics":["angular","cattle","graphql","jhipster","open-api-specification","spring-boot"],"latest_commit_sha":null,"homepage":"https://limousin.se","language":"Java","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/frostmarked.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}},"created_at":"2020-07-16T10:47:11.000Z","updated_at":"2021-08-17T19:45:22.000Z","dependencies_parsed_at":"2023-02-06T08:46:52.410Z","dependency_job_id":null,"html_url":"https://github.com/frostmarked/bonGateway","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostmarked%2FbonGateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostmarked%2FbonGateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostmarked%2FbonGateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostmarked%2FbonGateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frostmarked","download_url":"https://codeload.github.com/frostmarked/bonGateway/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247386688,"owners_count":20930694,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["angular","cattle","graphql","jhipster","open-api-specification","spring-boot"],"created_at":"2024-09-25T10:41:24.972Z","updated_at":"2026-01-19T04:32:49.687Z","avatar_url":"https://github.com/frostmarked.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Note\n\nVisit the parent project https://github.com/frostmarked/bonParent for more information\u003cbr\u003e\n\u003cbr/\u003e\n\u003cbr/\u003e\n\u003cbr/\u003e\n\u003cbr/\u003e\n![](https://github.com/frostmarked/bonGateway/workflows/Bon%20Gateway%20CI/badge.svg)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=frostmarked_bonGateway\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=frostmarked_bonGateway)\n\n# bonGateway\n\nThis application was generated using JHipster 6.10.5, you can find documentation and help at [https://www.jhipster.tech/documentation-archive/v6.10.5](https://www.jhipster.tech/documentation-archive/v6.10.5).\n\nThis is a \"gateway\" application intended to be part of a microservice architecture, please refer to the [Doing microservices with JHipster][] page of the documentation for more information.\n\nThis application is configured for Service Discovery and Configuration with the JHipster-Registry. On launch, it will refuse to start if it is not able to connect to the JHipster-Registry at [http://localhost:8761](http://localhost:8761). For more information, read our documentation on [Service Discovery and Configuration with the JHipster-Registry][].\n\n## Development\n\nBefore you can build this project, you must install and configure the following dependencies on your machine:\n\n1. [Node.js][]: We use Node to run a development web server and build the project.\n   Depending on your system, you can install Node either from source or as a pre-packaged bundle.\n\nAfter installing Node, you should be able to run the following command to install development tools.\nYou will only need to run this command when dependencies change in [package.json](package.json).\n\n```\nnpm install\n```\n\nWe use npm scripts and [Webpack][] as our build system.\n\nIf you are using hazelcast as a cache, you will have to launch a cache server.\nTo start your cache server, run:\n\n```\ndocker-compose -f src/main/docker/hazelcast-management-center.yml up -d\n```\n\nRun the following commands in two separate terminals to create a blissful development experience where your browser\nauto-refreshes when files change on your hard drive.\n\n```\n\n./mvnw\n\n\nnpm start\n```\n\nNpm is also used to manage CSS and JavaScript dependencies used in this application. You can upgrade dependencies by\nspecifying a newer version in [package.json](package.json). You can also run `npm update` and `npm install` to manage dependencies.\nAdd the `help` flag on any command to see how you can use it. For example, `npm help update`.\n\nThe `npm run` command will list all of the scripts available to run for this project.\n\n### PWA Support\n\nJHipster ships with PWA (Progressive Web App) support, and it's turned off by default. One of the main components of a PWA is a service worker.\n\nThe service worker initialization code is commented out by default. To enable it, uncomment the following code in `src/main/webapp/index.html`:\n\n```html\n\u003cscript\u003e\n  if ('serviceWorker' in navigator) {\n    navigator.serviceWorker.register('./service-worker.js').then(function () {\n      console.log('Service Worker Registered');\n    });\n  }\n\u003c/script\u003e\n```\n\nNote: [Workbox](https://developers.google.com/web/tools/workbox/) powers JHipster's service worker. It dynamically generates the `service-worker.js` file.\n\n### Managing dependencies\n\nFor example, to add [Leaflet][] library as a runtime dependency of your application, you would run following command:\n\n```\nnpm install --save --save-exact leaflet\n```\n\nTo benefit from TypeScript type definitions from [DefinitelyTyped][] repository in development, you would run following command:\n\n```\nnpm install --save-dev --save-exact @types/leaflet\n```\n\nThen you would import the JS and CSS files specified in library's installation instructions so that [Webpack][] knows about them:\nEdit [src/main/webapp/app/vendor.ts](src/main/webapp/app/vendor.ts) file:\n\n```\nimport 'leaflet/dist/leaflet.js';\n```\n\nEdit [src/main/webapp/content/scss/vendor.scss](src/main/webapp/content/scss/vendor.scss) file:\n\n```\n@import '~leaflet/dist/leaflet.css';\n```\n\nNote: There are still a few other things remaining to do for Leaflet that we won't detail here.\n\nFor further instructions on how to develop with JHipster, have a look at [Using JHipster in development][].\n\n### Using Angular CLI\n\nYou can also use [Angular CLI][] to generate some custom client code.\n\nFor example, the following command:\n\n```\nng generate component my-component\n```\n\nwill generate few files:\n\n```\ncreate src/main/webapp/app/my-component/my-component.component.html\ncreate src/main/webapp/app/my-component/my-component.component.ts\nupdate src/main/webapp/app/app.module.ts\n```\n\n### Doing API-First development using openapi-generator\n\n[OpenAPI-Generator]() is configured for this application. You can generate API code from the `src/main/resources/swagger/api.yml` definition file by running:\n\n```bash\n./mvnw generate-sources\n```\n\nThen implements the generated delegate classes with `@Service` classes.\n\nTo edit the `api.yml` definition file, you can use a tool such as [Swagger-Editor](). Start a local instance of the swagger-editor using docker by running: `docker-compose -f src/main/docker/swagger-editor.yml up -d`. The editor will then be reachable at [http://localhost:7742](http://localhost:7742).\n\nRefer to [Doing API-First development][] for more details.\n\n### Doing Graphql with OAS spec\n\nNote!\nDuring test and evaluation of workflow there were issues with conflicting npm dependencies regarding graphql.\nResult is that generators were moved to individual packages\n\n#### Backend\n\nUse https://editor.swagger.io/ to convert openapi spec to json and save to\n\n```\npackages/oas2gql/oas.json\n```\n\nCurrenly:\nRemove references to jwt in oas.json, its going to be public any way.\nThe generator will otherwise output dangerous warnings and odd looking graphql schema\n\n```\npackages/oas2gql/oas-no-jwt.json\n```\n\nRun converter, it will save result in graphql folder\n\n```\nnpm run oas2gql\n```\n\nAdd graphql-java-kickstart maven dependencies\n\n- graphql-spring-boot-starter\n- graphiql-spring-boot-starter\n\nAdd examples to graphiql folder\n\n- src/main/resources/graphql/graphiql\n\nAdd maven plugin graphql-java-codegen and configure it\n\n- https://github.com/kobylynskyi/graphql-java-codegen/tree/master/plugins/maven\n\nConfigure graphql and graphiql endpoints in Spring Boot configuration\n\n- SecurityConfiguration\n- WebConfigurer\n\nMake a simple test with a catch-all query-resolver\n\nRun app and use graphiql to test it\n\n- http://localhost:9000/graphiql\n\n#### Frontend\n\nRe-generate typescript from graphql schema and given queries plus fragments etc\n\n```\nnpm run gqlcodegen\n```\n\n## Building for production\n\n### Packaging as jar\n\nTo build the final jar and optimize the bonGateway application for production, run:\n\n```\n\n./mvnw -Pprod clean verify\n\n\n```\n\nThis will concatenate and minify the client CSS and JavaScript files. It will also modify `index.html` so it references these new files.\nTo ensure everything worked, run:\n\n```\n\njava -jar target/*.jar\n\n\n```\n\nThen navigate to [http://localhost:9000](http://localhost:9000) in your browser.\n\nRefer to [Using JHipster in production][] for more details.\n\n### Packaging as war\n\nTo package your application as a war in order to deploy it to an application server, run:\n\n```\n\n./mvnw -Pprod,war clean verify\n\n\n```\n\n## Testing\n\nTo launch your application's tests, run:\n\n```\n./mvnw verify\n```\n\n### Client tests\n\nUnit tests are run by [Jest][] and written with [Jasmine][]. They're located in [src/test/javascript/](src/test/javascript/) and can be run with:\n\n```\nnpm test\n```\n\nFor more information, refer to the [Running tests page][].\n\n### Code quality\n\nSonar is used to analyse code quality. You can start a local Sonar server (accessible on http://localhost:9001) with:\n\n```\ndocker-compose -f src/main/docker/sonar.yml up -d\n```\n\nYou can run a Sonar analysis with using the [sonar-scanner](https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner) or by using the maven plugin.\n\nThen, run a Sonar analysis:\n\n```\n./mvnw -Pprod clean verify sonar:sonar\n```\n\nIf you need to re-run the Sonar phase, please be sure to specify at least the `initialize` phase since Sonar properties are loaded from the sonar-project.properties file.\n\n```\n./mvnw initialize sonar:sonar\n```\n\nFor more information, refer to the [Code quality page][].\n\n## Using Docker to simplify development (optional)\n\nYou can use Docker to improve your JHipster development experience. A number of docker-compose configuration are available in the [src/main/docker](src/main/docker) folder to launch required third party services.\n\nFor example, to start a postgresql database in a docker container, run:\n\n```\ndocker-compose -f src/main/docker/postgresql.yml up -d\n```\n\nTo stop it and remove the container, run:\n\n```\ndocker-compose -f src/main/docker/postgresql.yml down\n```\n\nYou can also fully dockerize your application and all the services that it depends on.\nTo achieve this, first build a docker image of your app by running:\n\n```\n./mvnw -Pprod verify jib:dockerBuild\n```\n\nThen run:\n\n```\ndocker-compose -f src/main/docker/app.yml up -d\n```\n\nFor more information refer to [Using Docker and Docker-Compose][], this page also contains information on the docker-compose sub-generator (`jhipster docker-compose`), which is able to generate docker configurations for one or several JHipster applications.\n\n## Continuous Integration (optional)\n\nTo configure CI for your project, run the ci-cd sub-generator (`jhipster ci-cd`), this will let you generate configuration files for a number of Continuous Integration systems. Consult the [Setting up Continuous Integration][] page for more information.\n\n[jhipster homepage and latest documentation]: https://www.jhipster.tech\n[jhipster 6.10.5 archive]: https://www.jhipster.tech/documentation-archive/v6.10.5\n[doing microservices with jhipster]: https://www.jhipster.tech/documentation-archive/v6.10.5/microservices-architecture/\n[using jhipster in development]: https://www.jhipster.tech/documentation-archive/v6.10.5/development/\n[service discovery and configuration with the jhipster-registry]: https://www.jhipster.tech/documentation-archive/v6.10.5/microservices-architecture/#jhipster-registry\n[using docker and docker-compose]: https://www.jhipster.tech/documentation-archive/v6.10.5/docker-compose\n[using jhipster in production]: https://www.jhipster.tech/documentation-archive/v6.10.5/production/\n[running tests page]: https://www.jhipster.tech/documentation-archive/v6.10.5/running-tests/\n[code quality page]: https://www.jhipster.tech/documentation-archive/v6.10.5/code-quality/\n[setting up continuous integration]: https://www.jhipster.tech/documentation-archive/v6.10.5/setting-up-ci/\n[node.js]: https://nodejs.org/\n[yarn]: https://yarnpkg.org/\n[webpack]: https://webpack.github.io/\n[angular cli]: https://cli.angular.io/\n[browsersync]: https://www.browsersync.io/\n[jest]: https://facebook.github.io/jest/\n[jasmine]: https://jasmine.github.io/2.0/introduction.html\n[protractor]: https://angular.github.io/protractor/\n[leaflet]: https://leafletjs.com/\n[definitelytyped]: https://definitelytyped.org/\n[openapi-generator]: https://openapi-generator.tech\n[swagger-editor]: https://editor.swagger.io\n[doing api-first development]: https://www.jhipster.tech/documentation-archive/v6.10.5/doing-api-first-development/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrostmarked%2Fbongateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrostmarked%2Fbongateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrostmarked%2Fbongateway/lists"}