A sleek and modern weather dashboard application built with Next.js.
- Add a
.envfile with yourAPI_KEYfor weather.com (e1f10a1e78da46f5b10a1e78da96f525is one that is publicly available) - Install dependencies:
npm ci - Run the development server:
npm run dev - Open http://localhost:3000 in your browser
- Build the application:
npm run build - Start the production server:
npm start
The application is dockerized using Next.js standalone mode with node:20-alpine (LTS).
Using Docker Compose:
docker-compose up --buildUsing Docker directly:
# Build the image
docker build -t weatherdashboard .
# Run the container
docker run -p 3000:3000 --env-file .env weatherdashboardUsing pre-built images from GitHub Container Registry:
docker pull ghcr.io/benjaminderprogrammierer/weatherdashboard:latest
docker run -p 3000:3000 --env-file .env ghcr.io/benjaminderprogrammierer/weatherdashboard:latestYou'll need to provide your .env file with the API_KEY environment variable for all deployment methods.