| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
AceAI is a full-stack AI-powered application built with a Next.js frontend and a FastAPI backend. It provides features like document processing, AI-driven chat, quiz generation, note-taking, and web search.
project-root/ ├── app/ # FastAPI backend │ ├── core/ # Configurations and dependencies │ ├── routers/ # API routes │ ├── services/ # Business logic │ ├── main.py # FastAPI entry point │ ├── requirements.txt # Backend dependencies ├── app/ # Next.js frontend routing ├── public/ # Public assets (images, icons, etc.) ├── components/ # Reusable UI components ├── styles/ # CSS for styling ├── next.config.js # Next.js configuration ├── package.json # Frontend dependencies and scripts ├── .env # Environment variables └── README.md # Documentation
Navigate to the backend directory:
cd apiCreate and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate # For Windows: venv\Scripts\activateInstall backend dependencies:
pip install -r requirements.txtStart the backend server:
uvicorn app.main:app --reloadThe backend will run at http://127.0.0.1:8000.
Install frontend dependencies:
npm installStart the Next.js development server:
npm run devThe frontend will run at http://localhost:3000.
Create a .env file in the root directory with the following variables:
OPENAI_API_KEY=your_openai_api_key
SERPAPI_API_KEY=your_serpapi_api_key
UPLOAD_DIRECTORY=uploads/Create a .env file in the root directory with:
NEXT_PUBLIC_BACKEND_URL=http://127.0.0.1:8000/Frontend: Deploy the Next.js app using the Vercel CLI:
vercel --prodBackend: Configure vercel.json in the api/ directory:
{
"builds": [
{
"src": "main.py",
"use": "@vercel/python"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "main.py"
}
]
}Deploy the FastAPI backend:
vercel --prod| Back | FazBrowse Home | New Git URL |