- Turn web url into 5 words.
- Expire short url after 300 seconds. Re-counting the time if anyone connect to the short url before it expired.
- List all availables short urls.
- Docker is installed
- docker-compose is installed
- Configure environment variables
mv .env.example .env
- Start service:
sh manage.sh start_service
-
Visit
http://127.0.0.1:5000/short-url/home
-
Stop service:
sh manage.sh stop_service
-
Run tests (container)
- Execute test command
sh manage.sh test
-
Run tests (local)
- Ensure
redis
is set - Configure
.env_test
&&TestSettings
insettings.py
- Set environment variable
export FLASK_ENV=test
- Execute test command
pytest --cov
- Ensure