A modern React-based web application for photo analysis and language detection, built with Vite and styled with Tailwind CSS.
- 📸 Photo upload and preview
- 🔍 Image analysis with language detection
- 🌐 Multi-language filtering support
- ⚡ Fast development with Vite
- 🎨 Beautiful UI with Tailwind CSS v4
- ✨ Modern React 19 with hooks
- React 19 - Latest React features and improvements
- Vite - Next-generation frontend tooling
- Tailwind CSS v4 - Utility-first CSS framework
- ESLint - Code linting and quality assurance
Before you begin, ensure you have installed:
- Node.js (v16 or higher)
- npm or yarn package manager
- Clone the repository:
git clone https://github.com/Shriii19/pictune-frontend.git
cd pictune-frontend- Install dependencies:
npm install- Configure environment variables:
Create .env.development for local development:
VITE_API_URL=http://localhost:5000For production deployment, configure the environment variable in your hosting platform (Vercel, Netlify, etc.):
VITE_API_URL=https://your-backend-url.comStart the development server:
npm run devThe application will be available at http://localhost:5173 (default Vite port).
Create a production build:
npm run buildPreview the production build:
npm run preview- Push your code to GitHub
- Import your repository in Vercel
- Configure the environment variable:
- Add
VITE_API_URLwith your backend URL
- Add
- Deploy!
The vercel.json file is already configured for optimal deployment.
The app can be deployed to any static hosting platform:
- Netlify
- GitHub Pages
- AWS S3 + CloudFront
- Firebase Hosting
Make sure to:
- Set the build command to
npm run build - Set the output directory to
dist - Configure the
VITE_API_URLenvironment variable
Run ESLint to check code quality:
npm run lintpictune-frontend/
├── public/ # Static assets
├── src/
│ ├── assets/ # Images, fonts, etc.
│ ├── App.jsx # Main application component
│ ├── App.css # Application styles
│ ├── main.jsx # Application entry point
│ └── index.css # Global styles
├── index.html # HTML template
├── vite.config.js # Vite configuration
├── eslint.config.js # ESLint configuration
└── package.json # Project dependencies
- Drag and drop or click to upload images
- Real-time preview of selected photos
- Support for common image formats
- Automatic language detection from images
- Filter results by specific languages
- Support for multiple language options
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.
For questions or support, please open an issue on GitHub.