Skip to content

Commit b519fcb

Browse files
authored
43 refresh packages and code and readme (#44)
* Builk refactor of code * Package lock update * Refining map style setup * Adjusting import path * Revert path to original * Renaming linkedidsAPI.js
1 parent 3132faa commit b519fcb

32 files changed

+25140
-29402
lines changed

.env.sample

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
REACT_APP_OS_MAP_KEY=
2+
REACT_APP_API_BASE_URL=

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,19 @@ npm start
2727
This runs the app in the development mode.\
2828
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
2929

30+
To run the application, the API should also be running.
31+
32+
### Environment variables
33+
34+
In development, environment variables can be set within the `.env` file (can be created by copying the `.env.sample` file). This file is excluded from source control and should never be committed in public code.
35+
36+
During production runtime the environment variables can be set within the build environment e.g. within GitHub actions. As this is a client side project it should be noted that those values will be available within the built code.
37+
38+
| Variable | Description |
39+
| ---------------------- | -------------------------------------- |
40+
| REACT_APP_OS_MAP_URL | A URL for the OS Base Map Tile Service |
41+
| REACT_APP_API_BASE_URL | A URL for the supporting API |
42+
3043
## Deployment
3144

3245
```console
@@ -46,6 +59,8 @@ who participated in this project.
4659

4760
This project is licensed under the [MIT](LICENSE.md) License - see the [LICENSE.md](LICENSE.md) file for details
4861

49-
## Acknowledgements
62+
## Acknowledgements and Technologies
5063

64+
- [ReactJS](https://reactjs.org/)
5165
- [Material UI](https://mui.com/)
66+
- [MapLibre](https://maplibre.org/)

package-lock.json

Lines changed: 14361 additions & 18593 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
11
{
2-
"name": "mapup-reactjs",
2+
"name": "usemap-reactjs",
33
"version": "0.1.0",
44
"private": true,
55
"homepage": "https://geovation.github.io/usemap-reactjs/",
66
"dependencies": {
7-
"@emotion/react": "^11.10.4",
8-
"@emotion/styled": "^11.10.4",
7+
"@emotion/react": "^11.10.5",
8+
"@emotion/styled": "^11.10.5",
99
"@fontsource/roboto": "^4.5.8",
10-
"@mui/icons-material": "^5.10.6",
11-
"@mui/material": "^5.10.6",
12-
"@testing-library/jest-dom": "^5.16.5",
13-
"@testing-library/react": "^13.4.0",
14-
"@testing-library/user-event": "^13.5.0",
10+
"@mui/icons-material": "^5.11.0",
11+
"@mui/material": "^5.11.0",
1512
"axios": "^0.27.2",
1613
"mapbox-gl": "npm:empty-npm-package@^1.0.0",
1714
"maplibre-gl": "^2.4.0",
1815
"proj4": "^2.8.0",
1916
"react": "^18.2.0",
2017
"react-dom": "^18.2.0",
21-
"react-map-gl": "^7.0.19",
18+
"react-map-gl": "^7.0.20",
2219
"react-modal": "^3.16.1",
2320
"react-scripts": "5.0.1",
2421
"web-vitals": "^2.1.4",

0 commit comments

Comments
 (0)