A neighborhood safety alert system with AI-powered Q&A capabilities. This application allows users to view and submit safety alerts for their local area and ask questions about existing alerts.
- View safety alerts categorized by priority (high, medium, low)
- Submit new safety alerts
- Ask questions about existing alerts for more information
- Responsive design for all device sizes
- Node.js (v16 or higher)
- npm or yarn
- Clone the repository
git clone <repository-url>
cd safety-alert-hub- Install dependencies
npm install
# or
yarn install- Start the development server
npm run dev
# or
yarn dev- Open your browser and navigate to
http://localhost:8080
By default, the application uses mock data. To connect to a real backend:
- Start your Flask backend server on port 5000
- The frontend will automatically connect to the backend at
http://localhost:5000 - If the backend is unavailable, it will gracefully fall back to mock data
- React
- TypeScript
- Tailwind CSS
- shadcn/ui components
- React Query for data fetching