A simple app where a user types a vague goal (e.g., "Launch a startup"), and an AI Agent breaks it down into 5 actionable steps and saves them to a database.
- Backend: Python (FastAPI)
- Frontend: Next.js (React)
- UI: shadcn/ui
- Database: PostgreSQL
- AI: Google Gemini
- Docker & Docker Compose
- Node.js (v18+)
- Python (v3.10+)
- Google Gemini API Key
Create a .env file in the root directory (if not already present) and add your Gemini API Key:
POSTGRES_USER=user
POSTGRES_PASSWORD=password
POSTGRES_DB=goal_breaker
DATABASE_URL=postgresql://user:password@db:5432/goal_breaker
GEMINI_API_KEY=your_gemini_api_key_hereUse Docker Compose to start the PostgreSQL database:
docker compose up -d dbNavigate to the backend directory:
cd backendCreate a virtual environment and install dependencies:
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtRun the backend server:
uvicorn main:app --reloadThe API will be available at http://localhost:8000.
Navigate to the frontend directory:
cd frontendInstall dependencies:
npm installRun the development server:
npm run devThe application will be available at http://localhost:3000.
To run the backend tests:
cd backend
source .venv/bin/activate
pip install pytest httpx
python -m pytest