This project shows Automated External Defibrillators (AED) location on a map. Site is integrated with OpenStreetMap reading data from OSM and allowing to add AED location to OSM.
This is a rewrite of the first version to React. Development is in progress.
Branches:
- main - for prod environment
- dev - for dev environment
Create branch off of dev
branch and when finished make PR back to dev
branch.
Edit JSON files using this file path template public/locales/{language ISO 639-1 code}/translation.json
If creating new translation add it to src/i18n.js
with the 2 letter language code and native name (this is going to be displayed in dropdown).
One way to set up is:
- Clone repo and open terminal in the project directory
- Install Node version 18 or use Node version manager
- Run
npm install
Second way is if you are using VS Code and have Docker installed you can use devContainer extension.
Create .env file and put these variables there:
SKIP_PREFLIGHT_CHECK=true
REACT_APP_VERSION=$npm_package_version
REACT_APP_OSM_API_URL=https://master.apis.dev.openstreetmap.org
REACT_APP_OSM_OAUTH2_CLIENT_ID=xXaPFXSLizLHuZzoLI1eebHncPdDdVH7nA917S9uFUo
REACT_APP_OSM_OAUTH2_CLIENT_SECRET=vSfLjZquQ5xlcD9Lq9rhyDuH1ItpakgY5DW59WrRtHY
HOST=127.0.0.1
In the project directory, you can run:
Runs the app in the development mode.
Open http://127.0.0.1:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
See the section about deployment for more information.
Map and AED locations are from OpenStreetMap
- Maplibre GL JS
- OSM Auth
- OSM opening_hours
- React
- Bulma
- Bulma Tooltip
- Bulma Collapsible
- React Bulma Components
- Material Design Icons
This project was bootstrapped with Create React App.