Giter Site home page Giter Site logo

short-url's Introduction

short-url

  • URL을 입력받아 짧게 줄여주고, Shortening된 URL을 입력하면 원래 URL로 리다이렉트하는 URL Shortening Service
  • 테스트 서버 주소 : http://15.165.88.81:8080/

설치 & 빌드 방법

1. clone

git clone https://github.com/Jonny-Cho/short-url.git

2. db 설정

/project/real-application.yml 파일 생성 후 DB 정보 입력

spring:
  datasource:
    url: jdbc:mariadb://host:port/db
    username: username
    password: password
    driver-class-name: org.mariadb.jdbc.Driver

3. 실행

./gradlew bootRun

요구 사항 정리

  • URL 입력폼 제공 및 결과 출력
  • URL Shortening Key는 8 Character 이내
    • RandomString 클래스를 활용
      • 5 ~ 8자리의 랜덤한 문자를 사용
      • 중복의 가능성이 남아 있기 때문에 DB에 이미 존재하는 Shortening Key인지 체크해야함
  • 동일한 URL에 대한 요청은 동일한 Shortening Key로 응답
  • 동일한 URL에 대한 요청 수 정보를 가져야 함
  • Shortening된 URL을 요청받으면 원래 URL로 리다이렉트
  • test code 작성

short-url's People

Contributors

jonny-cho avatar

Watchers

James Cloos avatar  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.