{"id":25944981,"url":"https://github.com/path-check/safeplaces-ct-frontend","last_synced_at":"2025-03-04T08:20:33.115Z","repository":{"id":40286792,"uuid":"257619972","full_name":"Path-Check/safeplaces-ct-frontend","owner":"Path-Check","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-14T14:43:18.000Z","size":13759,"stargazers_count":22,"open_issues_count":19,"forks_count":28,"subscribers_count":14,"default_branch":"dev","last_synced_at":"2024-04-24T06:07:09.200Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Path-Check.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-21T14:21:21.000Z","updated_at":"2022-02-16T04:52:07.000Z","dependencies_parsed_at":"2023-01-28T23:45:55.762Z","dependency_job_id":null,"html_url":"https://github.com/Path-Check/safeplaces-ct-frontend","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Path-Check%2Fsafeplaces-ct-frontend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Path-Check%2Fsafeplaces-ct-frontend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Path-Check%2Fsafeplaces-ct-frontend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Path-Check%2Fsafeplaces-ct-frontend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Path-Check","download_url":"https://codeload.github.com/Path-Check/safeplaces-ct-frontend/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241810059,"owners_count":20023894,"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":"2025-03-04T08:20:32.493Z","updated_at":"2025-03-04T08:20:33.103Z","avatar_url":"https://github.com/Path-Check.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Safeplaces frontend\n\n\n### Technology used\n\n- react.js\n- redux \n- mapbox.gl\n- css modules with scss\n- jest for testing\n\n### Structure\n\n- use [ducks](https://github.com/erikras/ducks-modular-redux) scheme for redux implementation\n\n## Workflow\n\n\nThis project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).\n\n## Install\n\nclone the repository using the `dev_react` branch\n\nCopy the `.env.template` file in the parent directory and rename it to `.env` file in the parent directory. In order to make the application work correctly you have to enter API keys for Mapbox and Google places. If you don't want to register new ones feel free to ask for working credentials in the Slack channel.\n\n```\nREACT_APP_GOOGLE_PLACES_KEY=GOOGLE_API_KEY_WITH_PLACES_ENABLED\nREACT_APP_GOOGLE_PLACES_LANGUAGE=en\nREACT_APP_MAPBOX_KEY=MAPBOX_API_KEY\nREACT_APP_API_URL=REACT_APP_API_URL\nPA11Y_LOGIN_EMAIL= any valid onboarded account login email for the current API. Ideally the account should be a super user.\nPA11Y_LOGIN_PASSWORD= any valid onboarded account login password for the current API. Ideally the account should be a super user.\n```\n\n## Available Scripts\n\nIn the project directory, you can run:\n\n### `yarn start`\n\nRuns the app in the development mode.\u003cbr /\u003e\nOpen [http://localhost:3000](http://localhost:3000) to view it in the browser.\n\nThe page will reload if you make edits.\u003cbr /\u003e\nYou will also see any lint errors in the console.\n\n### `yarn test`\n\nLaunches the test runner in the interactive watch mode.\u003cbr /\u003e\nSee the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.\n\n### `yarn test:e2e`\n\nRuns the [Nightwatch](https://nightwatchjs.org/) WebDriver tests using Google Chrome against a locally\nrunning instance of the UI on port 3000 (e.g. http://localhost:3000/). You **MUST** have already started\nthe dev server using `npm run start` in another terminal/console.\n\n### `yarn test:cucumber`\n\nRuns the [Nightwatch](https://nightwatchjs.org/) WebDriver tests using Google Chrome against a locally\nrunning instance of the UI on port 3000. The difference between this and the `test:e2e` is that it uses \n[cucumber-js](https://github.com/cucumber/cucumber-js), feature files, and step definitions to do the\ntest using Behavior Driven Development (BDD). See the `features/login.feature` file and the \n`features/step-definitions/steps.js` files. \n\n### `yarn run a11y-check`\n\nRuns the current accessibility tests in `/a11y-tests/index.js` This file will have to be updates whenever new routes are created.\u003cbr /\u003e\nRequires `PA11Y_LOGIN_EMAIL` and `PA11Y_LOGIN_PASSWORD` \u003cbr /\u003e\nThe script will output accessibility errors to the console and also generate html files with the error lists in `/a11y-tests/errors`\u003cbr /\u003e\nCorresponding screenshots of the pages with errors will be generated in `/a11y-tests/screenshots`\u003cbr /\u003e\n\n### `yarn build`\n\nBuilds the app for production to the `build` folder.\u003cbr /\u003e\nIt correctly bundles React in production mode and optimizes the build for the best performance.\n\nThe build is minified and the filenames include the hashes.\u003cbr /\u003e\nYour app is ready to be deployed!\n\nSee the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.\n\n### `yarn eject`\n\n**Note: this is a one-way operation. Once you `eject`, you can’t go back!**\n\nIf you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.\n\nInstead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.\n\nYou don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.\n\n## Learn More\n\nYou can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).\n\nTo learn React, check out the [React documentation](https://reactjs.org/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpath-check%2Fsafeplaces-ct-frontend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpath-check%2Fsafeplaces-ct-frontend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpath-check%2Fsafeplaces-ct-frontend/lists"}