An image search full-stack web application using React and Vite for the frontend, Flask for the backend, MongoDB for storage, and CLIP embeddings for semantic search of queries and images.
- Clone this repository:
git clone https://github.com/QinWenFeng/ImageSearch-ReactVite-FlaskMongoDB-CLIP.git
cd ImageSearch-ReactVite-FlaskMongoDB-CLIP
- Navigate to the backend directory:
cd backend
- Create virtual environment:
# Ubuntu
python3 -m venv venv
- Activate virtual environment:
# Ubuntu
source venv/bin/activate
- Install the required dependencies:
pip install -r requirements.txt
- Navigate to the frontend directory:
cd ../frontend
- Install the required dependencies:
npm install
- Build the frontend:
npm run build
- Navigate to the backend directory:
cd ../backend
- Run the Flask app:
flask run
- Open your web browser and navigate to http://localhost:5173 to access the web interface.