{"id":16690181,"url":"https://github.com/aptmac/travis-for-thermostat-web-client","last_synced_at":"2025-03-13T19:22:43.486Z","repository":{"id":91219658,"uuid":"93879628","full_name":"aptmac/travis-for-thermostat-web-client","owner":"aptmac","description":"Travis CI for Thermostat NG Web-Client","archived":false,"fork":false,"pushed_at":"2017-06-15T16:23:42.000Z","size":183,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T15:17:12.195Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aptmac.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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":"2017-06-09T16:58:51.000Z","updated_at":"2017-06-09T16:59:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"e9cece65-f0d8-41f9-9b92-7c688473fb2a","html_url":"https://github.com/aptmac/travis-for-thermostat-web-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aptmac%2Ftravis-for-thermostat-web-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aptmac%2Ftravis-for-thermostat-web-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aptmac%2Ftravis-for-thermostat-web-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aptmac%2Ftravis-for-thermostat-web-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aptmac","download_url":"https://codeload.github.com/aptmac/travis-for-thermostat-web-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243466985,"owners_count":20295309,"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":[],"created_at":"2024-10-12T15:50:40.488Z","updated_at":"2025-03-13T19:22:43.464Z","avatar_url":"https://github.com/aptmac.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Thermostat Web-Client\n\nAngularJS \u0026 Patternfly Application: Thermostat UI\n\n[![Build Status](https://travis-ci.org/aptmac/travis-for-thermostat-web-client.svg?branch=master)](https://travis-ci.org/aptmac/travis-for-thermostat-web-client)\n\n[![Chat](https://img.shields.io/badge/chat-on%20freenode-brightgreen.svg)](https://webchat.freenode.net/?channels=#thermostat)\n\n## Dependencies:\n\n`npm`, which will pull down all other dependencies.\n\n`keycloak.json` generated by a Keycloak server (if desired, ie, running with\n`NODE_ENV=production`), placed in `src/app/components/auth/`. The file contents should\nlook like:\n\n    {\n        \"url\": \"http://some.domain:PORT/auth\",\n        \"realm\": \"FooRealm\",\n        \"clientId\": \"BarClientId\"\n    }\n\n## Environments\n\n`GATEWAY_URL` should be set to the URL of a Thermostat Web-Gateway instance.\nThe default value of this variable is the default URL for the web-client\nmockapi server.\n\nExpected values for `NODE_ENV`:\n\n- `production` for production environments, which produces a smaller application\nbundle and expects Keycloak configuration\n\n- `testing` for test environments, ex. CI\n\n- `development` for individual developers' machines\n\nIn `testing` and `development`, one hard-coded user exists. The username is\n`test-user` and the password is `test-pass`. This is intended _only_ for\ndevelopment and testing, never for deployments.\n\nWhen building with `npm run build`, these values should be set via a standard\nshell environment variable. When building with `s2i build`, the file `.s2i/environment`\nshould exist and contain ex. `NODE_ENV=production`.\n\n## How to use\n\n**Live-reload development:**\n\n`npm run devserver`, then point a web browser at localhost:8080.\n\n**One-time build:**\n\n`npm run build` for a build with unit tests but *not* integration tests, or\n\n`npm run verify` for a build with unit tests and integration tests. This\nrequires the embedded webserver and mockapi-server to be able to run and bind\non their respective ports, as described below.\n\n**Non-live-reload web-server:**\n\n`npm start`, then point a web browser at localhost:8080.\n\nIn this case, you may run the server on a different port than the default `8080`\nby setting the environment variable `PORT` to a port number of your choosing.\nThe server also binds by default on `0.0.0.0`, which can be overridden with the\nenvironment variable `HOST`.\n\nThis will also bring up the mock API endpoint server, which by default will run\non port `8888` and bind to `0.0.0.0`. These can be overridden with the\nenvironment variables `MOCKAPI_PORT` and `MOCKAPI_HOST`.\n\nThe webserver and mockapi-server are both run as daemons. They can be stopped\nusing `npm stop`.\n\n**Testing**\n\nUnit tests are run with both `npm run build` and `npm run verify`, but\nintegration tests are only run on `npm run verify`.\n\nTo run unit tests separately from a build, use `npm test` for a one-shot test\nsuite execution, or `npm run test-watch` to monitor test files and rerun the\nsuite when any test file changes.\n\nTo run integration tests separately, use `npm run integration-test`. This will\nrequire the embedded webserver to be running, using ex. `npm start`.\n\n### Source-to-Image\n\n`s2i` can also be used to produce an application image. The expected base image\nis `centos/nodejs-4-centos7`, although others may also work. The build invocation\nwill look like `s2i build . centos/nodejs-4-centos7 thermostat-web-client` and\nrunning the image will look like `docker run -it --rm -p 8888:8080 thermostat-web-client`,\nwhich will bind the application to port 8888 on the host machine.\n\nThe `PORT` and `HOST` variables outlined above may also be set in `.s2i/environment`.\n\n### OpenShift\n\nIn order to deploy this web-client on OpenShift do:\n\n    $ oc new-app centos/nodejs-4-centos7~https://github.com/andrewazores/thermostat-web-client\n\n## Keycloak Configuration\n\nFollow the Thermostat Web-Gateway configuration guide for Keycloak. See the\ntop of this file for where to place the generated `keycloak.json`.\n\nAdditionally, configure the Client on the Keycloak Server with the following\nparameters:\n\n`Valid Redirect URIs: http://localhost:8080/*` (or similar)\n\n`Web Origins: +`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faptmac%2Ftravis-for-thermostat-web-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faptmac%2Ftravis-for-thermostat-web-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faptmac%2Ftravis-for-thermostat-web-client/lists"}