This is a weather app built using Vite, React, TypeScript, Tanstack Router, Tanstack Query, and tested with Vitest and Fast Check.
Before you begin, ensure you have met the following requirements:
- Node.js: Make sure you have Node.js installed on your machine.
-
Clone the repository:
gh repo clone LRNZ09/weathernook
-
Change to the project directory:
cd weathernook
-
Install the project dependencies:
npm install
To run the Weathernook app locally, use the following command:
npm run dev
This will start the development server, and you can access the app in your web browser at http://localhost:5173
.
We use Vitest and Fast Check for testing. To run the tests, use the following command:
npm run test
To deploy the Weathernook app, you can use your preferred hosting service. You may need to configure environment variables for API keys and other sensitive information if applicable.
- Vite - Fast development server and build tool.
- React - A JavaScript library for building user interfaces.
- TypeScript - A statically typed superset of JavaScript.
- Tanstack Router - Declarative routing for React.
- Tanstack Query - Data fetching and state management for React.
- Ahooks - A high-quality & reliable React Hooks library.
- Jotai - Primitive and flexible state management for React.
- Zod - TypeScript-first schema validation with static type inference.
- Vitest - Test runner for modern JavaScript projects.
- Fast Check - A property-based testing library for JavaScript and TypeScript.
Contributions are welcome! Please feel free to open issues or pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to the creators and maintainers of the technologies used in this project.
- Weather data provided by OpenWeather.