Coder Social home page Coder Social logo

tiny's Introduction

URL Shortener Service

This project contains a simple URL Shortener service which exposes its functionality via a Web Service API.

Assignment

The implementation of this service is not quite complete. Implement the following features:

  • A user can add a website URL for which a short URL is created and stored in the database. The short URL must have a unique ID consisting of alphanumeric characters.
  • The service exposes a Web Service API for providing appropriate CRUD operations to consumers.
  • Optional: The Web Service API accepts and provides data in multiple formats, e.g. JSON, XML, etc.
  • When opening a short URL in a Web Browser the website of the original URL shows up.
  • Whenever someone opens a short URL a set of statistics is stored (number of calls, date and time, user agent, referrer, etc.).
  • These statistics can be retrieved via the Web Service API.

These features are sorted by priority and therefore should be implemented in that order. It's not necessary to implement all of these features - quality over quantity ;)

Please submit the assignment 3 days after it has been sent to you by pushing the code to GitHub.

Thank you for taking your time.

Happy coding!

Work with the Project

Build

This project uses Maven as its build tool. In order to build, test and package the application run the following command:

mvn clean package

Run

Once the application has been build and packaged successfully, you'll find a JAR file in the target folder. The file is called url-shortener.jar. Use the following command to run the application:

java -jar target/url-shortener.jar

After a few seconds the application should have started successfully. You can access the Web Service endpoints via http://localhost:8080 now.

tiny's People

Contributors

kasowi avatar olmacc 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.