A full-stack application that uses AI to analyze skin type and recommend personalized shea butter products.
- AI-powered skin type analysis
- Personalized product recommendations
- Interactive skin analysis interface
- Real-time camera integration
- Responsive design
- React.js
- React Router
- Axios
- CSS3
- Flask
- PyTorch
- OpenCV
- NumPy
- Pillow
chmod +x install.sh
./install.sh- Frontend Setup
cd frontend
npm install- Backend Setup
cd skin-analyzer/backend
python -m venv venv
# Activate virtual environment
# On Windows:
venv\Scripts\activate
# On Unix or MacOS:
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt- Start the Backend
cd skin-analyzer/backend
source venv/bin/activate # or venv\Scripts\activate on Windows
python app.py- Start the Frontend (in a new terminal)
cd frontend
npm startThe application will be available at:
- Frontend: http://localhost:8080
- Backend API: http://localhost:8000
The frontend is configured for GitHub Pages deployment:
- Update the homepage in
frontend/package.jsonif needed - Deploy to GitHub Pages:
cd frontend
npm run deployThe application will be available at: https://murayeeto.github.io/SmartShea
The backend is configured for Render.com deployment:
- Connect your GitHub repository to Render.com
- Create a new Web Service
- Configure the service:
- Build Command:
pip install -r requirements.txt - Start Command:
gunicorn app:app - Root Directory: skin-analyzer/backend
- Build Command:
Create a .env file in the frontend directory:
REACT_APP_API_URL=your_backend_url
Configure in Render.com dashboard:
GITHUB_PAGES_URL: https://murayeeto.github.ioUPLOAD_FOLDER: /tmp/uploadsPYTHON_VERSION: 3.8.0
/
├── frontend/ # React frontend
│ ├── public/ # Static files
│ └── src/ # Source code
├── skin-analyzer/ # Python backend
│ └── backend/ # Flask application
└── install.sh # Installation script
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.