{"id":20103118,"url":"https://github.com/strader07/brabbl-frontend-react","last_synced_at":"2025-09-11T02:06:49.016Z","repository":{"id":259588454,"uuid":"373679008","full_name":"strader07/brabbl-frontend-react","owner":"strader07","description":"brabbl frontend in react.js","archived":false,"fork":false,"pushed_at":"2021-06-04T00:40:21.000Z","size":581,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-25T08:04:02.827Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/strader07.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":"2021-06-04T00:40:15.000Z","updated_at":"2021-07-01T10:17:36.000Z","dependencies_parsed_at":"2024-10-26T19:02:30.923Z","dependency_job_id":"be6f5265-0548-4787-8b75-25a7285e2ef6","html_url":"https://github.com/strader07/brabbl-frontend-react","commit_stats":null,"previous_names":["strader07/brabbl-frontend-react"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/strader07/brabbl-frontend-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strader07%2Fbrabbl-frontend-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strader07%2Fbrabbl-frontend-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strader07%2Fbrabbl-frontend-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strader07%2Fbrabbl-frontend-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strader07","download_url":"https://codeload.github.com/strader07/brabbl-frontend-react/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strader07%2Fbrabbl-frontend-react/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261832617,"owners_count":23216494,"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-11-13T17:34:20.788Z","updated_at":"2025-06-25T08:04:05.131Z","avatar_url":"https://github.com/strader07.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Development\n-----------\nInstall the dependencies via `npm install`\n\nThen start the `webpack-dev-sever` via\n\n`npm start`\n\nand navigate to\n\n`http://localhost:3000/`\n\nFor testing the different components locally use:\n\n* `/` for the DetailView\n* `/create.html` for the Create Discussion-Button and corresponding Dialogue\n* `/list.html` for the List View\n\nNOTE: Make sure that a local API server is running (or adjust the config [`/src/js/config/...`]\nso that the the staging server is used for development) and adjust the `articleId` and `customerId`\nin each template so that they match an existing `Customer` and `Discussion` in the backend.\n\n`customerId` is the `Embed token` which is specified on the detail page of a customer in the backend: `/admin/accounts/customer/\u003cID\u003e/`\nThe `articleId` corresponds to to an `External id` of a discussion: `/admin/core/discussion/\u003cID\u003e/`\n\nTesting\n-------\n\nRun the tests via `npm run test`\n\nDeployment\n----------\n\nFrontend and Backend are deployed separately.\nThe frontend deployment includes basically the following steps:\n* The frontend is compiled/build on the developer's machine (via `npm run build_ENVIRONMENT`)\n* The build-folder (`dist/build/ENVIRONMENT`) is then copied to the target server. (Currently the widget should be copied to the backend server(API-Server/Django-Backend-Server) from where it then gets served to the clients. There is a corresponding entry in the [snippet](https://github.com/brabbl/brabbl-backend#snippet) that gets included on the customer's page.)\n* Instead of manually copying the file there is a command (`npm run deploy_ENVIRONMENT`), which first builds the frontend and then copies the file to the desired machine (the correct path needs to be set in `package.json`)\n\nNOTE:\n\nThere are two important variables that determine the way the widget is served:\n\n`NODE_ENV`: NODE_ENV is important for dropping the dev tools and minifying React and the widget (https://facebook.github.io/react/downloads.html#npm)\n\n`APP_ENV`: APP_ENV is important for providing the widget with the [correct settings per environment](https://github.com/brabbl/brabbl-frontend/blob/master/src/js/config/index.js):\n\nBoth settings are used for configuration in [package.json](https://github.com/brabbl/brabbl-frontend/blob/master/package.json#L12) and the [webpack config](https://github.com/brabbl/brabbl-frontend/blob/master/webpack.production.config.js#L15).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrader07%2Fbrabbl-frontend-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrader07%2Fbrabbl-frontend-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrader07%2Fbrabbl-frontend-react/lists"}