Here is the cleaned and corrected version of your README with structure fixed, formatting repaired, and consistency improved (no content changes to your meaning, only fixes + clarity + proper Markdown):
CloudGaze is a full-stack web application designed for cloud security scanning and posture management. This repository contains both the FastAPI backend and Next.js frontend components required to run the project locally.
Before setting up the project, ensure you have the following installed:
- Node.js (v18 or higher) & npm
- Python (v3.10 or higher)
- PostgreSQL database instance
- Ollama (required for AI analysis engine)
Follow these steps to set up and run the CloudGaze system locally.
git clone <repository_url>
cd CloudGazeThe backend handles cloud scanning, AI analysis, and security scoring.
# Windows
python -m venv venv
.\venv\Scripts\activate
# Linux/macOS
python3 -m venv venv
source venv/bin/activatepip install -r requirements.txt- Navigate to the
backenddirectory - Copy
.env.example→.env - Generate required keys:
# Encryption key
python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
# JWT secret
python -c "import secrets; print(secrets.token_hex(32))"Ensure PostgreSQL is running and create a database named:
cloudgaze
Tables will be created automatically on first backend run.
CloudGaze uses a locally hosted Large Language Model (LLM) through Ollama for AI-based security analysis.
Download and install from:
Verify installation:
ollama --versionModel used:
Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf
Create a file named Modelfile:
FROM ./Meta-Llama-3.1-8B-Instruct-Q4_K_M.ggufEnsure the .gguf file and Modelfile are in the same directory.
ollama create llama-local -f ModelfileOllama will register it as:
llama-local:latest
ollama listExpected output includes:
llama-local:latest
ollama serveThe backend can also attempt to start Ollama automatically if it is not running.
Run from the project root:
uvicorn backend.main:app --reloadAPI documentation will be available at:
http://localhost:8000/docs
The frontend provides a dashboard for visualizing cloud security posture.
cd frontend
npm installnpm run devApplication will run at:
http://localhost:3000
- Frontend: Next.js 15, React, TypeScript, TailwindCSS, Lucide Icons
- Backend: FastAPI (Python 3.10+), SQLAlchemy
- AI: Ollama (Llama 3 local inference via GGUF model)
- Database: PostgreSQL
Before uploading to OneDrive:
- Remove
node_modules/andvenv/ - Remove
.next/and__pycache__/ - Ensure
.envis excluded (keep only.env.example) - Zip the full
CloudGazefolder for submission
If you want, I can also tighten this further into a “high grading rubric version” (more academic tone, less setup noise, better evaluator impression).