A simple vulnerable by design weather application built for the SecureCloudX Hackathon. To teach participants security from code to cloud for cloud native applications.
- Fetches current weather data for any city
- Simple and intuitive user interface
- Built with React and Vite
- Deliberately vulnerable for educational purposes
-
Clone the repository:
git clone https://github.com/your-username/vuln-weather-app.git cd vuln-weather-app -
Install dependencies:
npm install
-
Start the development server:
npm run dev
This application can be run using Docker for easy deployment and development.
- Docker installed on your system
- Docker Compose (optional, for easier management)
-
Build the Docker image:
docker build -t vuln-weather-app . -
Run the container:
docker run -d -p 5173:5173 vuln-weather-app
The app will be available at
http://localhost:5173
If you prefer using Docker Compose, create a docker-compose.yml file:
version: "3.8"
services:
weather-app:
build: .
ports:
- "5173:5173"
environment:
- NODE_ENV=development
volumes:
- .:/app
- /app/node_modulesThen run:
docker compose upFor development with hot reload, you can mount the source code as a volume:
docker run -p 5173:5173 -v $(pwd):/app -v /app/node_modules vuln-weather-app- Stop running container:
docker stop <container-id> - View running containers:
docker ps - View container logs:
docker logs <container-id> - Remove container:
docker rm <container-id> - Remove image:
docker rmi vuln-weather-app - Clean up unused containers/images:
docker system prune
- Start services:
docker-compose up - Start in background:
docker-compose up -d - Stop services:
docker-compose down - View logs:
docker-compose logs -f - Rebuild and start:
docker-compose up --build
This project is licensed for hackathon use only.
