https://github.com/saeris/weather
🌦 a tiny weather app
https://github.com/saeris/weather
app-router flask nextjs python react typescript vercel
Last synced: 2 months ago
JSON representation
🌦 a tiny weather app
- Host: GitHub
- URL: https://github.com/saeris/weather
- Owner: Saeris
- Created: 2024-03-07T05:41:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-10T00:08:20.000Z (over 2 years ago)
- Last Synced: 2025-01-11T17:26:32.051Z (over 1 year ago)
- Topics: app-router, flask, nextjs, python, react, typescript, vercel
- Language: TypeScript
- Homepage: https://weather.saeris.gg
- Size: 19.2 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🌦
a tiny weather app build with [Nextjs](https://nextjs.org/) and [Flask](https://flask.palletsprojects.com/en/3.0.x/)
> [!TIP]
>
> Use [uv](https://github.com/astral-sh/uv) for a faster Python development experience!
>
> Installation instructions below will assume you have this CLI tool installed.
## 🧰 Setup
Click to view environment setup (optional)
This repo uses Python and Node, and was scaffolded using the following tools.
#### Install `uv`
macOS/Linux:
```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
```
Windows:
```ps
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
```
#### Install `volta`
macOS/Linux:
```bash
curl https://get.volta.sh | bash
```
Windows:
Download installer from [Volta Getting Started page](https://docs.volta.sh/guide/getting-started#windows-installation)
#### Install `node`
```bash
volta install node
```
#### Install `yarn`
```bash
volta install yarn
```
And you're good to go!
1. Create a `.env` file in the project root directory and add your [api key](https://home.openweathermap.org/api_keys) from Open Weather Map to a key named `WEATHER_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):
```bash
echo WEATHER_API_KEY=api_key_here > .env
```
1. Create a new local virtual environment:
```bash
uv venv
```
1. Install project dependencies:
Node:
```bash
yarn
```
Python:
```bash
uv pip install -r requirements.txt
```
1. Activate virtual environment:
```bash
yarn activate
```
1. And start developing!
```bash
yarn dev
```