A modern React TypeScript application for exploring and discovering cocktail recipes. Built with React, TypeScript, and Vite for optimal performance and developer experience.
- 🔍 Search for cocktails by name
- 🎲 View random cocktail suggestions
- 📝 Detailed recipe information including:
- Ingredients and measurements
- Preparation instructions
- Glass type
- Cocktail image
- 📱 Responsive design for all devices
- ⚡ Fast and smooth user experience
- 🎨 Modern and clean UI
- React 18
- TypeScript
- Vite
- CSS3
- TheCocktailDB API
- Node.js (v14 or higher)
- npm or yarn
-
Clone the repository:
git clone https://github.com/nimasaghi-dev/cocktail-explorer.git cd cocktail-explorer -
Install dependencies:
npm install # or yarn install
-
Start the development server:
npm run start # or yarn start -
Open your browser and navigate to:
http://localhost:3000
To create a production build:
npm run build
# or
yarn buildThe build files will be created in the dist directory.
cocktail-explorer/
├── src/
│ ├── components/ # React components
│ ├── services/ # API services
│ ├── types/ # TypeScript type definitions
│ ├── App.tsx # Main App component
│ └── main.tsx # Application entry point
├── public/ # Static assets
├── index.html # HTML template
├── package.json # Project dependencies
├── tsconfig.json # TypeScript configuration
└── vite.config.ts # Vite configuration
- 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
- TheCocktailDB for providing the cocktail data API