This is the frontend application for the Morning Star (Monsta) project, built with React and Vite. The application provides a user-friendly interface for monitoring Wazuh alerts, and viewing alert summaries.
- 📊 Dashboard: View detailed Wazuh alerts for specific IP addresses.
- 📋 Alerts Summary: Summarized view of triggered alerts grouped by IP address.
- 🔍 Search Functionality: Search alerts by IP address.
- 🔒 Authentication: Secure access with token-based authentication.
- ⚛️ React: Frontend library for building user interfaces.
- ⚡ Vite: Fast build tool for modern web projects.
- 🎨 Tailwind CSS: Utility-first CSS framework for styling.
- 📡 Axios: HTTP client for API requests.
- 🛣️ React Router: For navigation and routing.
Follow these steps to set up the project locally:
-
Clone the repository:
git clone https://github.com/your-username/securitybotfrontend.git
cd securitybotfrontend -
Install dependencies:
npm install -
Create a .env file in the root directory and configure the following environment variables:
VITE_API_URL=http://localhost:3001 -
Start the development server:
npm run dev -
Open the application in your browser at http://localhost:5173.
npm run dev: Start the development server.npm run build: Build the application for - production.npm run preview: Preview the production build locally.npm run lint: Run ESLint to check for code issues.
securitybotfrontend/
├── public/ # Static assets
├── src/
│ ├── components/ # React components (Dashboard, Summary, etc.)
│ ├── styles/ # Global styles
│ ├── App.jsx # Main application component
│ ├── main.jsx # Entry point
│ └── index.css # Tailwind CSS configuration
├── .env # Environment variables
├── package.json # Project dependencies and scripts
├── vite.config.js # Vite configuration
└── README.md # Project documentation
The application communicates with the backend through the following API endpoints:
- GET
/api/v1/wazuh/alerts/:ip: Fetch alerts for a specific IP address. - GET
/api/v1/wazuh/alerts/summary: Fetch summarized alerts grouped by IP address.
Contributions are welcome! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature-name - Make your changes and commit them:
git commit -m "Add feature-name" - Push to your branch:
git push origin feature-name - Open a pull request.
This project is licensed under the MIT License.
- 🙏 Acknowledgments
- ⚛️ React
- ⚡ Vite
- 🎨 Tailwind CSS
- 📡 Axios
- 🛣️ React Router


