Mirror Mirror is an interactive AI-powered web application designed to help users start their day with a positive mindset. It acts as a friendly, supportive, and empathetic companion, providing positive affirmations based on user input and allowing users to take selfies with a timestamp.
- Chat with AI: Interact with an AI chatbot that provides positive affirmations.
- Take a Selfie: Capture selfies with a live webcam preview and a countdown timer.
- Timestamped Photos: Selfies include the current date in the bottom-right corner.
- Responsive Design: A user-friendly interface for seamless interaction.
- React: For building the user interface.
- Axios: For making API requests to the backend.
- CSS: For styling the application.
- FastAPI: For handling API requests and managing chatbot logic.
- Python: For backend development.
git clone https://github.com/GraceC-339/Mirror.git
cd Mirror
- Navigate to the backend directory:
cd backend - Create a virtual environment:
python3 -m venv venvsource venv/bin/activate - Install dependencies:
pip install -r requirements.txt - Run the backend server:
uvicorn main:app --reload
- Navigate to the frontend directory:
cd ../frontend - Install dependencies:
npm install - Start the frontend development server:
npm start
- Open the application in your browser at http://localhost:3000.
- Interact with the chatbot by typing messages in the input box.
- Click the "Take a Selfie" button to open the webcam preview.
- Wait for the countdown and capture your selfie with a timestamp.