GithubHelp home page GithubHelp logo

andrejgl / jninja_challenge Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sizovs/jninja_challenge

0.0 0.0 0.0 3 KB

Practical assignment for Effective Java Software Design course

Home Page: http://devchampions.com/training/java

jninja_challenge's Introduction

Homework

Goal

Create a simple link shortening and analytics web service similar to bit.ly.

In order to take over the world and beat competitors, we need the service that provides the following functionality:

1) Ability to shorten the link

  • Include validation against malformed links

2) Ability to customise the link (bit.ly/<this-part>)

  • Make sure there are no duplicates
  • Make sure that <this-part> does not include abusive words (provide hard-coded dictionary with N random words)

3) Ability to track link visits (time, ip address and country).

  • Country is resolved against some geo-encoding service such as ip-api.com or freegeoip.net
  • Implement protection against network latency with Failsafe
  • Make sure that a link is eventually geo-encoded, even if geo-encoding service is slow or unresponsive during the link visit

4) Ability to get all shortened links via web api

5) Ability to get all visits for a given link via web api

  • It must be clear from the response whether geo-encoding is pending
  • Link visits must appear in chronological order

Other concerns

  • Demonstrate application usage with high-level acceptance tests
  • Make sure that both application and tests run in embedded mode. In other words, it must run on a laptop with nothing but Java and Docker installed
  • Push application to GitHub
  • Provide simple and concise setup instructions
  • Express major design decisions you have made on wiki

FAQ

โ€“ there is no need in UI. Web API is the app's UI.

jninja_challenge's People

Contributors

sizovs 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.