The Weather Widget application is a simple web app implemented using Node.js, TypeScript and React. It displays basic weather information (temperature, humidity, wind) for a Danish city. By default, the city is set to Copenhagen.
Follow these steps to get the application running on your local machine:
- Clone the repository to your local machine using:
git clone https://github.com/vino-dk/weather_widget.git
- Navigate to the project directory in the terminal/command prompt.
- Run
npm install
to install the dependencies and devDependencies of the project. - Once all the dependencies are installed, start the applications.
- In the frontend, run "npm run dev" and open the URL.
- In the backend folder, run "nodemon server.ts" to start the express server.
- Users can share the widget for any other Danish city by updating the URL parameters.
- Running the App with Disabled JavaScript
- The application should continue to function even if JavaScript is disabled in the web browser. In such cases, full page reloads are allowed. Follow the same URL conventions as described above to view weather data for particular cities.
- Unit Testing