8000 GitHub - ocollp/shortify: A simple service to shorten long URLs.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ocollp/shortify

< 8000 /div>

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Shortify - URL Shortening Service

Shortify is a URL shortening service developed in Java 17 using Spring Boot and PostgreSQL. This project allows users to shorten long URLs and retrieve them via a short identifier.

Features

  • Shortens long URLs into a short format.
  • Stores the relationship between original and shortened URLs in a PostgreSQL database.
  • Retrieves the original URL from its shortened version.
  • Generates a unique identifier using Base64 encoding.

Requirements

  • Java 17
  • PostgreSQL
  • Maven (for building and managing dependencies)

Installation

  1. Clone this repository:

    git clone https://github.com/ocollp/shortify.git
  2. Navigate to the project directory:

    cd shortify
  3. Set up your PostgreSQL database:

  • Create a database for the project.
  • Ensure that the database is up and running.
  1. Configure the application.properties file:
  • Set the database connection URL and the base URL for the service.
  1. Build the project using Maven

    mvn clean install
  2. Run the application:

    mvn spring-boot:run

Usage

Example Requests

  1. Shorten URL:
    POST /shortify
    Content-Type: application/json
    
    {
       "originalUrl": "www.example.com/looooooong-url"
    }
  2. Retrieve Original URL:
     GET /shortify/12e6e

About

A simple service to shorten long URLs.

Resources

Stars

Watchers

Forks

Releases

No release 33D2 s published

Packages

No packages published

Languages

0