Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A comprehensive MERN stack application that predicts and monitors forest fire risks using machine learning algorithms and real-time data analysis. Features an interactive dashboard with data visualizations, automated alert system, historical trend analysis, and secure user authentication. Built to help prevent forest fires through intelligent risk

Notifications You must be signed in to change notification settings

immansha/forest-fire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

11 Commits

Repository files navigation

πŸ”₯ Forest Fire Prediction System (BlazeFix)

A comprehensive MERN stack application for predicting and monitoring forest fire risks using machine learning algorithms and real-time data analysis.

🌟 Features

  • Real-time Fire Risk Prediction - Advanced ML algorithms to predict fire probability
  • Interactive Dashboard - Visualize fire risk data with charts and maps
  • Alert System - Automated notifications for high-risk areas
  • Historical Data Analysis - Track fire patterns and trends over time
  • User Authentication - Secure login and user management
  • Responsive Design - Works seamlessly across all devices

πŸ› οΈ Tech Stack

Frontend

  • React 18 with TypeScript
  • Vite for fast development and building
  • React Router for navigation
  • Context API for state management
  • CSS3 with modern styling

Backend

  • Node.js with Express.js
  • MongoDB with Mongoose ODM
  • JWT for authentication
  • bcryptjs for password hashing
  • CORS for cross-origin requests
  • Rate limiting and security middleware

Additional Tools

  • Nodemon for development
  • Git for version control
  • Vercel for frontend deployment

πŸš€ Getting Started

Prerequisites

  • Node.js (v18 or higher)
  • MongoDB (local or MongoDB Atlas)
  • Git

Installation

  1. Clone the repository

    git clone https://github.com/immansha/forest-fire.git
    cd forest-fire/BlazeFix/project
  2. Install frontend dependencies

    npm install
  3. Install backend dependencies

    cd server
    npm install
    cd ..
  4. Environment Setup

    Create a .env file in the server directory:

    MONGODB_URI=your_mongodb_connection_string
    JWT_SECRET=your_jwt_secret_key
    PORT=9999
  5. Start the development servers

    Frontend (from BlazeFix/project):

    npm run dev

    Backend (from BlazeFix/project/server):

    npm run dev

πŸ”§ Configuration

Frontend Configuration (vite.config.js)

export default {
 server: {
 proxy: {
 '/api': 'http://localhost:9999'
 }
 }
}

Backend Configuration

The server runs on port 9999 by default and connects to MongoDB using the connection string in your .env file.

πŸ“ˆ Performance

  • Frontend: Optimized with Vite for fast HMR and builds
  • Backend: Implements rate limiting and efficient database queries
  • Database: Indexed queries for faster data retrieval

Happy Coding! πŸš€

About

A comprehensive MERN stack application that predicts and monitors forest fire risks using machine learning algorithms and real-time data analysis. Features an interactive dashboard with data visualizations, automated alert system, historical trend analysis, and secure user authentication. Built to help prevent forest fires through intelligent risk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /