NOTE: This document is AI-generated
A modern, responsive frontend for the URL shortener application built with Next.js, Tailwind CSS, and TypeScript.
- 🎨 Modern UI with Tailwind CSS
- 📱 Fully responsive design
- 🔒 Password protection for shortened URLs
- ⚡ Fast page loads with Next.js
- 🧪 Comprehensive test suite with Playwright
- Framework: Next.js 14
- Styling: Tailwind CSS
- Language: TypeScript
- Testing: Playwright
- UI Components: shadcn/ui
- Node.js 20.x or later
- npm
-
Clone the repository
-
Install dependencies:
npm install
-
Create a
.env
file based onsample.env
:cp sample.env .env
-
Start the development server:
npm run dev
The application will be available at http://localhost:3000.
# Run Playwright tests
npm run test
npm run build
Build the Docker image:
docker build -t url-shortener-frontend .
# or use the docker compose file at project root
Run the container:
docker run -p 3000:3000 url-shortener-frontend
# or use the docker compose file at project root
frontend/
├── app/ # Next.js app directory
├── components/ # Reusable UI components
├── lib/ # Utility functions and shared code
├── public/ # Static assets
└── tests/ # E2E tests
- Create a feature branch
- Make your changes
- Run tests
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.