Giter Club home page Giter Club logo

url-shortener's Introduction

Shorty: The URL Shortener

button
url shortener

This is a URL Shortener written in Java with the only purpose to create shortened urls, which are stored in a Redis-Database. The shortened links can then be used to provide a simpler access to complicated URLs.

shorty

It comes with authentication support. Only admins are allowed to create or delete short links.

Installation

You need a JDK and Gradle for this project.

As a requirement a Redis-Database is necessary. Start one with

docker run -p 6379:6379 redis:alpine

Then start the application:

gradle bootRun

Usage

Open the landing page http://localhost:8080. You now need to login as an admin. The credentials are defined in the application.properties.

In the admin menu you can add new short links.

Then you can get redirected by querying the following address: http://localhost:8080/<your-short-link>;

Docker

We automatically build a docker image for shorty. Find it here: https://hub.docker.com/repository/docker/cmeter/url-shortener

Deployment

There is a docker-compose.yml file to create a production build. Please copy and edit skeleton.env to your needs and save it as production.env

The application then starts a redis server, which persists the data and exposes port 8080 for further access.

Contribution

  • Write in English language

  • Add Issues and assign yourself to the issue when you want wo work on it

  • Create Pull Requests

  • Read and follow the Code of Conduct

url-shortener's People

Contributors

ititus avatar matlorr avatar mkasimd avatar n2o avatar niruc100 avatar spitzlei 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.