Before you begin, ensure you have the following installed:
- Python 3.8 or higher
- Node.js 16.0 or higher
- npm or yarn package manager
git clone <repository-url>
cd <project-directory>Navigate to the backend directory and install Python dependencies:
cd backend
pip install -r requirements.txtNavigate to the frontend directory and install Node.js dependencies:
cd frontend
npm install
# or if using yarn
yarn install- Open
main.pyin your preferred text editor - Locate the API key configuration section
- Replace the placeholder with your actual API key:
API_KEY = "your-api-key-here"Configure email authentication by updating the following fields in main.py:
EMAIL_CONFIG = {
"email": "your-email@example.com",
"password": "your-email-password",
"smtp_server": "smtp.gmail.com", # Update if using different provider
"smtp_port": 587
}Note: For Gmail users, you'll need to generate an app-specific password rather than using your regular password. Visit Google App Passwords to create one.
cd backend
python main.pyThe backend server will start on http://localhost:8000
In a new terminal window:
cd frontend
npm start
# or if using yarn
yarn startThe frontend application will open in your browser at http://localhost:3000
- API Key Issues: Ensure your API key is valid and has the necessary permissions
- Email Authentication Errors: Check that you're using an app-specific password if required by your email provider
- Port Conflicts: If ports 8000 or 3000 are in use, you can modify them in the respective configuration files
- Never commit your API keys or email credentials to version control
- Consider using environment variables for sensitive configuration
- Create a
.envfile for local development (remember to add it to.gitignore)