{"id":45185013,"url":"https://github.com/ghacupha/erp-client","last_synced_at":"2026-02-20T10:31:10.023Z","repository":{"id":46585112,"uuid":"422461952","full_name":"ghacupha/erp-client","owner":"ghacupha","description":"Angular based client for the ERP system created with JHipster","archived":false,"fork":false,"pushed_at":"2025-05-27T10:43:41.000Z","size":97987,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-27T11:23:01.298Z","etag":null,"topics":["angular","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghacupha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null}},"created_at":"2021-10-29T06:14:42.000Z","updated_at":"2025-05-27T10:43:45.000Z","dependencies_parsed_at":"2025-05-27T11:30:17.332Z","dependency_job_id":null,"html_url":"https://github.com/ghacupha/erp-client","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ghacupha/erp-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghacupha%2Ferp-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghacupha%2Ferp-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghacupha%2Ferp-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghacupha%2Ferp-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghacupha","download_url":"https://codeload.github.com/ghacupha/erp-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghacupha%2Ferp-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29647891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T09:27:29.698Z","status":"ssl_error","status_checked_at":"2026-02-20T09:26:12.373Z","response_time":59,"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":["angular","typescript"],"created_at":"2026-02-20T10:31:09.954Z","updated_at":"2026-02-20T10:31:10.017Z","avatar_url":"https://github.com/ghacupha.png","language":"TypeScript","readme":"# erpSystem\n\nThis application was generated using JHipster 7.3.1, you can find documentation and help at [https://www.jhipster.tech/documentation-archive/v7.3.1](https://www.jhipster.tech/documentation-archive/v7.3.1).\n\n## Deployment\n\nAt present the deployment process is generally ran in the following way:\n\n```\n   ng build --prod --output-path ./dist\n   \n```\nThe code in the dist directory is copied into the deployment repo and the following script is ran\n\n```\n   \n   forever start server.js\n\n```\n\nTo run with  debugger:\n\n```\n  set DEBUG=express:* \u0026 node index.js\n\n```\n\nTo run the most recent setup from the deployment repo run the following:\n\n```\n   git clone https://github.com/ghacupha/erp-client-deployment.git\n   \n   cd erp-client-deployment\n   \n   npm install\n   \n   forever start server.js\n\n```\n\n### Test Deployment\nSometimes a test environment needs to be configured alongside a running prod server.\nThe above build can be used to run a several server-client instance when the following\nenvironment keys are configured:\n\n- ERP_SYSTEM_DEV_PORT: The port of the backend server\n- ERP_SYSTEM_DEV_PORT: The port of the backend server\n- SERVER_API_URL: Address of the backend server written in quotes e.g. set SERVER_API_URL=\"http://localhost:8982/\"\n- SERVER_API_URL_URL: The address of the backend server without the quotes or the stroke\n- SERVER_API_WS_URL: The address of the backend server's web-socker end-point e.g. set SERVER_API_WS_URL=ws://127.0.0.1:8982\n- ERP_SYSTEM_DEV_PORT: This is picked from the environment as it should be already configured to enable the server to run severally  from a different port\n- ERP_CLIENT_DEV_PORT: The port on which the client is to be accessed on a browser. e.g. set ERP_CLIENT_DEV_PORT=8984\n\nNote: If you intend to use a production instance from a container to run tests, the port of that instance is what you use to configure the ERP_SYSTEM_DEV_PORT\n\nAll these keys are created to enable a dev instance of this client to access a dev or prod instance of the server depending on the configuration of the later's port\n\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 [Angular CLI][] with [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./mvnw\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 disabled by default. To enable it, uncomment the following code in `src/main/webapp/app/app.module.ts`:\n\n```typescript\nServiceWorkerModule.register('ngsw-worker.js', { enabled: false }),\n```\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/app.module.ts](src/main/webapp/app/app.module.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### JHipster Control Center\n\nJHipster Control Center can help you manage and control your application(s). You can start a local control center server (accessible on http://localhost:7419) with:\n\n```\ndocker-compose -f src/main/docker/jhipster-control-center.yml up\n```\n\n## Building for production\n\n### Packaging as jar\n\nTo build the final jar and optimize the erpSystem application for production, run:\n\n```\n./mvnw -Pprod clean verify\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```\njava -jar target/*.jar\n```\n\nThen navigate to [http://localhost:8980](http://localhost:8980) 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./mvnw -Pprod,war clean verify\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][]. They're located in [src/test/javascript/](src/test/javascript/) and can be run with:\n\n```\nnpm test\n```\n\nUI end-to-end tests are powered by [Protractor][], which is built on top of WebDriverJS. They're located in [src/test/javascript/e2e](src/test/javascript/e2e)\nand can be run by starting Spring Boot in one terminal (`./mvnw spring-boot:run`) and running the tests (`npm run e2e`) in a second one.\nUI end-to-end tests are powered by [Cypress][]. They're located in [src/test/javascript/cypress](src/test/javascript/cypress)\nand can be run by starting Spring Boot in one terminal (`./mvnw spring-boot:run`) and running the tests (`npm run e2e`) in a second one.\n\n#### Lighthouse audits\n\nYou can execute automated [lighthouse audits][https://developers.google.com/web/tools/lighthouse/] with [cypress audits][https://github.com/mfrachet/cypress-audit] by running `npm run e2e:cypress:audits`.\nYou should only run the audits when your application is packaged with the production profile.\nThe lighthouse report is created in `target/cypress/lhreport.html`\n\n### Other tests\n\nPerformance tests are run by [Gatling][] and written in Scala. They're located in [src/test/gatling](src/test/gatling).\n\nTo use those tests, you must install Gatling from [https://gatling.io/](https://gatling.io/).\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\nNote: we have turned off authentication in [src/main/docker/sonar.yml](src/main/docker/sonar.yml) for out of the box experience while trying out SonarQube, for real use cases turn it back on.\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 7.3.1 archive]: https://www.jhipster.tech/documentation-archive/v7.3.1\n[using jhipster in development]: https://www.jhipster.tech/documentation-archive/v7.3.1/development/\n[using docker and docker-compose]: https://www.jhipster.tech/documentation-archive/v7.3.1/docker-compose\n[using jhipster in production]: https://www.jhipster.tech/documentation-archive/v7.3.1/production/\n[running tests page]: https://www.jhipster.tech/documentation-archive/v7.3.1/running-tests/\n[code quality page]: https://www.jhipster.tech/documentation-archive/v7.3.1/code-quality/\n[setting up continuous integration]: https://www.jhipster.tech/documentation-archive/v7.3.1/setting-up-ci/\n[node.js]: https://nodejs.org/\n[npm]: https://www.npmjs.com/\n[webpack]: https://webpack.github.io/\n[browsersync]: https://www.browsersync.io/\n[jest]: https://facebook.github.io/jest/\n[protractor]: https://angular.github.io/protractor/\n[cypress]: https://www.cypress.io/\n[leaflet]: https://leafletjs.com/\n[definitelytyped]: https://definitelytyped.org/\n[angular cli]: https://cli.angular.io/\n[gatling]: https://gatling.io/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghacupha%2Ferp-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghacupha%2Ferp-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghacupha%2Ferp-client/lists"}