🪄 Moved to mono repo.
This package contains the open-weather-vision graphical user interface. It can be run as frontend application inside a browser or as electron desktop application.
Prerequisites:
- NodeJS
- env-cmd (install using
npm i -g env-cmd) and serve (install usingnpm i -g serve)
- in development mode:
npm run web:dev - in production mode:
npm run web:build && npm run web:start
- in development mode:
npm run electron:dev - in production mode:
npm run electron:build && npm run electron:start
In this folder we define all components that are used across the whole application.
In this folder we define all pages a user can enter via links.
The folder structure represents the logical website structure. A page.tsx represents a visible endpoint. E.g. a page.tsx inside /src/pages/hello/world refers to localhost:3000/hello/world.
If you define a layout.tsx inside a folder, all page.tsx files in subfolders will get wrapped inside the defined component.
In this folder a .json file is defined for each supported language. Yes, the gui support multiple languages! The language can be switched easily by the user.
In this folder all images and icons that are imported via imports (import { ReactComponent as IconName } from "../../img/icon_name.svg") are located.
In this folder other files that support development are located. Currently there is the updatesRoutes.js file, which recursively reads the src/pages directory to create the routes.tsx file which defines the website hierarchical structure.
There are environment files for each application type (electron, web) and environment type (development, production). If you want environment specific behaviour you may use the these files to define environment variables. Remember to prefix them with REACT_APP_.
