A modern URL shortening service built with Next.js and Spring Boot, inspired by Bitly. Shortly helps you create short, memorable links from long URLs.
- 🔗 URL shortening with custom aliases
- 📊 Click tracking and analytics
- 🎨 Modern, responsive UI
- 🔒 Secure link generation
- 📱 Mobile-friendly design
- Next.js 14
- TypeScript
- Tailwind CSS
- Shadcn UI Components
- Spring Boot
- Java
- Maven
shortly/
├── frontend/ # Next.js frontend application
│ ├── src/ # Source code
│ ├── public/ # Static assets
│ └── components/ # React components
│
└── backend/ # Spring Boot backend application
└── src/ # Java source code
- Node.js 18+ (for frontend)
- Java 17+ (for backend)
- Maven (for backend)
- Navigate to the frontend directory:
cd frontend - Install dependencies:
npm install
- Start the development server:
npm run dev
- Navigate to the backend directory:
cd backend - Build the project:
./mvnw clean install
- Run the application:
./mvnw spring-boot:run
Create a .env file in the frontend directory with:
NEXT_PUBLIC_API_URL=http://localhost:8080
Configure the env.properties file in the backend directory with your database and other settings.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request