GithubHelp home page GithubHelp logo

urlshortenerheroku's Introduction

Versions

  • Play version: 2.1.3
  • JDK version: 1.7.0_79
  • Scala version: 2.10
  • Postgres version: 9.4.5
  • Uses anorm and evolutions to create tables

Repo and deployment

Endpoints

The user input form that accepts a user-specified url (original or shortened) and has a submit and display button.

  • [Submit click]: When user inputs original URL and hits the submit button, shortened URL is presented to the user.
  • [Short url click]: When the user clicks on the shortened URL he is taken to the website of the original url.
  • [Display click]: When user inputs shortened URL and hits the display button, the ipaddress and hits for the shortened url are presented to the user.

Code

Model

  • URL.scala: Maps to shortURL table in database. Contains algorithm to shorten URL
  • Users.scala: Maps for users table in database.

Controller

  • Application.scala: Controller for submit, display and short url to orginal url actions

Views

  • index.scala.html: User input form with submit and display buttons. Also used for presenting results
  • redirect.scala.html: Redirects to original url page when clicked on short url

evolutions/default

  • 1.sql: Creates database tables shorturl and users via anorm

urlshortenerheroku's People

Contributors

binshi avatar

Stargazers

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