$ 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/QWPrDUx
to 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
pipenv
virtualenv
$ pipenv shell
- Install dependencies with
pipenv
$ pipenv install --dev
- Install redis using homebrew
$ brew install redis
$ brew services start redis
- Add the
shortify
directory to your PYTHONPATH. Example:
$ export PYTHONPATH='/Users/lezoudali/Dev/shortify
-
Run
$ make dev
to start dev server -
Run
$ make test
to run tests