Giter Site home page Giter Site logo

urlshortnerservice's Introduction

URL Shortener Service

The URL Shortener Service is a simple application that allows users to shorten long URLs into shorter, more manageable links.

Features

-> Shorten long URLs into tiny URLs. -> Customizable expiration date for generated URLs. -> Simple and intuitive REST API for integration.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Java Development Kit (JDK) installed on your machine Apache Maven for building the project Git for cloning the repository

Installation

Clone the repository: git clone https://github.com/vigneshreddy17/UrlShortnerService.git

Navigate to the project directory:

cd UrlShortnerService

Build the project using Maven:

mvn clean install

Run the application:

java -jar target/UrlShortnerService.jar

Usage

To use the URL Shortener Service, you can call the generate endpoint using the Postman to send a POST request with the long URL in the request body. The service will respond with a shortened URL.

Example:

Request: { "url": "https://www.google.com" }

Response: { "tinyUrl": "360efda7", "creationDate": "2024-02-20T12:45:47.063382", "expirationDate": "2024-02-20T12:55:47.063382" }

Continuous Integration

Continuous integration is set up using GitHub Actions. Whenever a new pull request is opened, the CI workflow will be triggered to run tests and ensure code quality before merging.

Docker

Created a docker image for the service and published the image onto docker hub https://hub.docker.com/repository/docker/vigneshreddy17/url-shortner-service/general

Contributing

Contributions are welcome! Please feel free to open a pull request or submit an issue if you encounter any problems or have suggestions for improvements.

License

This project is licensed under the MIT License - see the LICENSE file for details.

urlshortnerservice's People

Contributors

vigneshreddy17 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.