Changes between Initial Version and Version 1 of BuildInstructions


Ignore:
Timestamp:
07/07/26 17:56:26 (7 hours ago)
Author:
231118
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BuildInstructions

    v1 v1  
     1= Build Instructions =
     2
     3== Development environment description ==
     4
     5The prototype is implemented as a web application.
     6
     7Required software:
     8
     9 * Python 3.11 or newer
     10 * SQLite 3
     11 * Git
     12 * Visual Studio Code or PyCharm (recommended)
     13 * Modern web browser (Google Chrome, Microsoft Edge or Mozilla Firefox)
     14
     15Python libraries:
     16
     17 * Flask
     18 * Flask-CORS
     19 * Requests
     20 * python-dotenv
     21 * Grafana client libraries (if configured)
     22
     23The database used by the prototype is ''lan_logs_sysmon.db''.
     24
     25----
     26
     27== Build instructions ==
     28
     291. Clone the project repository.
     30
     31{{{
     32git clone https://github.com/istevanoska/NETIntel
     33cd Proekt_Wazuh
     34}}}
     35
     362. Create and activate a virtual environment.
     37
     38Windows:
     39
     40{{{
     41python -m venv .venv
     42.venv\Scripts\activate
     43}}}
     44
     45Linux/macOS:
     46
     47{{{
     48python3 -m venv .venv
     49source .venv/bin/activate
     50}}}
     51
     523. Install all required dependencies.
     53
     54{{{
     55pip install -r requirements.txt
     56}}}
     57
     584. Start the server.
     59
     60{{{
     61python server.py
     62}}}
     63
     64The server starts on:
     65
     66{{{
     67http://localhost:5555
     68}}}
     69
     70If the database does not exist, it is automatically created when the server starts.
     71
     725. Start the frontend.
     73
     74{{{
     75cd lan-frontend
     76npm run dev
     77}}}
     78
     79Starts on:
     80{{{
     81http://localhost:5173
     82}}}
     83
     84
     85
     866. Start the client.
     87
     88{{{
     89python sctry.py
     90}}}
     91
     92You should enter the ip address from the server, provived in the terminal where you started the server.
     93Enter the token you have generated, from the admin panel for the environment.
     94
     95{{{
     96http://localhost:5555
     97}}}
     98
     99
     100
     101----
     102
     103== Testing instructions ==
     104
     105Open the application in a web browser:
     106
     107{{{
     108http://localhost:5555
     109}}}
     110
     111Login using a valid user account.
     112
     113After successful login the following prototype functionalities can be tested:
     114
     115 * Dashboard – overview of all monitored computers
     116 * Computer Details – detailed information about a selected computer
     117 * Environment Management – create and manage environments and generate tokens
     118 * Agent Communication – send monitoring data from the client application
     119 * RAG / Chat – generate SQL queries from natural language questions
     120
     121Example questions for the Chat module:
     122
     123 * Show all active processes for Ilina-laptop.
     124 * Show all security alerts.
     125 * Show the latest Sysmon events.
     126 * List all monitored computers.
     127
     128Mini guide:
     129
     130 1. Login to the application.
     131 2. Open the Dashboard.
     132 3. Select a monitored computer.
     133 4. View system metrics, running processes and security events.
     134 5. Open Environment Management if administrator privileges are available.
     135 6. Open the Chat page and ask a question in natural language.
     136 7. Review the generated SQL query and the returned results.
     137
     138----
     139
     140== Source code ==
     141
     142The repository contains:
     143
     144 * Complete application source code
     145 * Flask backend
     146 * Frontend source code
     147 * SQL scripts for creating the database schema
     148 * SQL scripts containing sample data
     149 * Documentation for the project
     150
     151All source code required to build and run the prototype is available in the DEVELOP repository.