breve (empty) → 0.0.1.0
raw patch · 5 files changed
+78/−0 lines, 5 filesdep +aesondep +basedep +binarysetup-changed
Dependencies added: aeson, base, binary, bytestring, cryptohash, hashtables, mtl, random, simple, transformers, wai, wai-extra, warp
Files
- LICENSE +3/−0
- Main.hs +14/−0
- README.md +26/−0
- Setup.hs +2/−0
- breve.cabal +33/−0
+ LICENSE view
@@ -0,0 +1,3 @@+Dual licensed under the MIT and GPL licenses:+http://www.opensource.org/licenses/mit-license.php+http://www.gnu.org/licenses/gpl.html
+ Main.hs view
@@ -0,0 +1,14 @@+{-# LANGUAGE OverloadedStrings #-}++import Application+import Breve.Common++import Control.Applicative+import Network.Wai.Handler.Warp+import Network.Wai.Middleware.RequestLogger++main :: IO ()+main = do+ (url, settings) <- serverSettings+ putStrLn ("Serving on " ++ url)+ app (runSettings settings . logStdout)
+ README.md view
@@ -0,0 +1,26 @@+# Breve+### a url shortener++Breve is a web application that provides a simple interface to+shortening long urls creating smaller and easy to remember links.++It creates links like "/emeaoinqua" that easier to remember than+alphanumeric strings like "/1Cqw8lHw" used by several services.++## Running the app+ + git clone https://github.com/rnhmjoj/breve+ cd breve+ cabal install --only-dependencies+ cabal run++This will start the app on `http://127.0.0.1:3000`++You can set the bind hostname/port via the `PORT` and `ADDRESS`+environment variables++## License++Dual licensed under the MIT and GPL licenses: +http://www.opensource.org/licenses/mit-license.php +http://www.gnu.org/licenses/gpl.html
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ breve.cabal view
@@ -0,0 +1,33 @@+name: breve+version: 0.0.1.0+synopsis: a url shortener+description:+ + A web application that provides a simple interface to shortening+ long urls creating smaller and easy to remember links.++homepage: https://github.com/rnhmjoj/breve+license: MIT+license-file: LICENSE+author: Rnhmjoj+maintainer: micheleguerinirocco@me.com+copyright: (C) Michele Guerini Rocco 2015+category: Web+build-type: Simple+extra-source-files: README.md, LICENSE+cabal-version: >=1.10++source-repository head+ type: git+ location: https://github.com/rnhmjoj/breve++executable breve+ main-is: Main.hs+ default-language: Haskell2010+ build-depends: base ==4.*, simple >= 0.8.0, + wai ==2.*, wai-extra ==2.*, warp ==2.1.*,+ aeson ==0.8.*, bytestring ==0.10.*,+ transformers ==0.3.*, mtl ==2.1.*,+ hashtables ==1.2.*, cryptohash ==0.11.*,+ binary ==0.7.*, random ==1.1.*+ ghc-options: -threaded -O2