a tiny weather app build with Nextjs and Flask
Tip
Use uv for a faster Python development experience!
Installation instructions below will assume you have this CLI tool installed.
Click to view environment setup (optional)
This repo uses Python and Node, and was scaffolded using the following tools.
macOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
Windows:
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
macOS/Linux:
curl https://get.volta.sh | bash
Windows:
Download installer from Volta Getting Started page
volta install node
volta install yarn
And you're good to go!
-
Create a
.env
file in the project root directory and add your api key from Open Weather Map to a key namedWEATHER_API_KEY=
macOS/Linux users can use this command to write the key to a new file (will cause Flask to throw an error on Windows):
echo WEATHER_API_KEY=api_key_here > .env
-
Create a new local virtual environment:
uv venv
-
Install project dependencies:
Node:
yarn
Python:
uv pip install -r requirements.txt
-
Activate virtual environment:
yarn activate
-
And start developing!
yarn dev