Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

short.maro.xyz

Url Shortener for maro.xyz

Requirements

  • Python3
  • Virtualenv (optional)
  • Pip3
  • Bower

How to run

setup a virtualenv (optional)

  • $ virtualenv env
  • $ . env/bin/activate

install requirements

  • $ pip3 install -r requirements.txt
  • $ bower install

Run

$ python3 app.py


Usage

exemple

####request

curl -H "Content-Type: application/json" -X POST -d '{"url":"http://facebook.com"}' http://localhost:5000/`

####response

{
  "short_url": "localhost:5000/VSoVV3M",
  "url": "http://facebook.com"
}

About

Url Shortner for maro.xyz

Resources

License

Releases

No releases published

Packages

No packages published