A modern cocktail discovery app that helps you explore, browse, and find your next favorite drink.
- Cocktail of the Moment - Get a random cocktail suggestion with every refresh
- Browse by Letter - Explore cocktails alphabetically from A to Z
- Search Functionality - Find specific cocktails by name
- Ingredients Directory - Browse all ingredients and discover drinks made with them
- Favorites - Save your preferred cocktails for quick access
- Responsive Design - Works seamlessly on desktop and mobile devices
- Framework: Next.js 15 (App Router)
- Language: TypeScript
- Styling: Tailwind CSS
- Icons: Lucide React
- UI Components: Shadcn/UI components with Radix UI primitives
- Data Source: TheCocktailDB API
- Node.js 18+
- pnpm
- Clone the repository:
git clone https://github.com/mryeminaung/cocktail-explorer.git
cd cocktail-explorer- Install dependencies:
pnpm install- Create a
.envfile and add API keys:
COCKTAIL_API_URL=http://www.thecocktaildb.com/api/json/v1/1- Run the development server:
pnpm dev- Open http://localhost:3000 with your browser to see the result.
- Home Page: Shows a random "Cocktail of the Moment" with a shuffle button to discover new drinks
- Browse: Navigate cocktails alphabetically using the letter grid
- Search: Find specific cocktails by name
- Ingredients: Browse all ingredients and see which cocktails use them
- Favorites: Access your saved cocktails (stored locally)