$ curl -X POST https://shortify-lezou.herokuapp.com/api/shortify -d "destination=https://www.google.com/"
{"destination":"https://www.google.com/","slug":"QWPrDUx"}- Visit
https://shortify-lezou.herokuapp.com/QWPrDUxto be redireted tohttps://www.google.com/
-
Install Python3 (using Homebrew)
-
Make sure the Python3 bin directory is added to your PATH.
-
Example:
$ export PATH=/Users/lezoudali/Library/Python/3.6/bin:$PATH -
Install pipenv using
pip. -
Start the
pipenvvirtualenv
$ pipenv shell
- Install dependencies with
pipenv
$ pipenv install --dev
- Install redis using homebrew
$ brew install redis
$ brew services start redis
- Add the
shortifydirectory to your PYTHONPATH. Example:
$ export PYTHONPATH='/Users/lezoudali/Dev/shortify
-
Run
$ make devto start dev server -
Run
$ make testto run tests