Files
halflink/README.md

1.5 KiB

Screenshot #1 - Homepage

halflink

A primitive URL shortener service built powered by Spring Boot, with a NextJS frontend.

Tech Stack

  • Backend: Spring Boot (Java)
  • Database: PostgreSQL
  • Frontend: React (NextJS) with TypeScript

Architecture

The application follows a three-tier architecture:

  • Presentation Layer: React-based frontend for URL management
  • Application Layer: Express.js API server handling business logic
  • Data Layer: PostgreSQL for URL mappings, interacted with via Spring Boot Data JPA

Getting Started

Prerequisites

  • Java (tested on OpenJDK 21.0.5)
  • Maven (tested on Apache Maven 3.6.3)
  • Node.js (v18 or higher, tested on v22.17.0)
  • PostgreSQL (v14 or higher, tested on psql 18.1)

Installation

  1. Clone the repository:
git clone https://github.com/0xShay/halflink.git
cd halflink
  1. Configure database variables:
cd backend/src/main/resources
# Edit application.properties with your database credentials
  1. Build and start the backend server:
cd backend
mvn package
java -jar target/halflink-1.0.0.jar
  1. Build and start the user interface:
cd frontend
npm install
npm run build
npm start

The application will be available at http://localhost:3000

Screenshot #2 - Successful Shorten Screenshot #3 - Manage Link

License

This project is open source and available under the MIT License.