Skip to content

Commit

Permalink
[backend-frontend communication, frontend layout] (#10)
Browse files Browse the repository at this point in the history
* [backend-frontend communication, frontend layout]
**backend-frontend communication**
- endpoint for getting data from backend
- date value added to esp_measurements for getting latest measurements
- created WeatherDTO for efficient data transfer
- added web configuration

**frontend layout**
- implemented frontend layout
- implemented http polling for cyclic data retrieval

* Delete .vscode/launch.json

* Delete .vscode/settings.json
  • Loading branch information
kasprzakewa authored Nov 17, 2024
1 parent 43d6819 commit 8fe539f
Show file tree
Hide file tree
Showing 38 changed files with 722 additions and 101 deletions.
14 changes: 0 additions & 14 deletions .vscode/launch.json

This file was deleted.

3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

223 changes: 223 additions & 0 deletions react/weather/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions react/weather/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"lodash": "^4.17.21",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.28.0",
"react-scripts": "5.0.1",
"styled-components": "^6.1.13",
"typescript": "^4.9.5",
"web-vitals": "^2.1.4"
},
Expand Down Expand Up @@ -46,6 +48,8 @@
},
"devDependencies": {
"@eslint/js": "^9.14.0",
"@types/react-router-dom": "^5.3.3",
"@types/styled-components": "^5.1.34",
"autoprefixer": "^10.4.20",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
Expand Down
2 changes: 1 addition & 1 deletion react/weather/postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ module.exports = {
tailwindcss: {},
autoprefixer: {},
},
}
};
Binary file added react/weather/public/cold.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added react/weather/public/hot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion react/weather/public/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
Binary file added react/weather/public/rain.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added react/weather/public/snow.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added react/weather/public/sunny.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 8fe539f

Please sign in to comment.