A full-stack application for visual search capabilities, built with Next.js frontend and FastAPI backend.
- Docker
- Docker Compose
- Clone the repository
- From the root directory, run:
docker-compose up --buildThis will start both the frontend and backend services:
- Frontend: http://localhost:3000
- Backend API: http://localhost:8000
For local development of the frontend:
- Navigate to the frontend directory:
cd frontend- Install dependencies:
npm install- Start the development server:
npm run devFor local development of the backend:
- Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate # On Windows: venv\Scripts\activate- Navigate to the backend directory:
cd backend- Install dependencies:
pip install -r requirements.txt- Start the development server:
uvicorn main:app --reload- Frontend: Next.js application with TypeScript
- Backend: FastAPI application with Python
- Image Processing: PyTorch, OpenCV, and Transformers
- API Documentation: Swagger UI and ReDoc
- The frontend is configured to proxy API requests to the backend
- Both services use Docker for production deployment
- The backend uses CPU-only versions of PyTorch for compatibility
- Development can be done either with Docker or locally