URL shortening service to be used in a microservices environment.
Project description
# tinyurls
URL shortening service to be used in a microservices environment.
This service does the following:
1. Takes a long url and stores an md5 key and the url in a database table.
The md5 key is used to lookup the long url. This step returns an short link
with md5.
2. Takes a short link and redirects you to the long link.
## Installation
Use virtual environment
```bash
virtualenv env
source env/bin/activate
```
Change into tinyurls directory and install
```
cd tinyurls
python setup.py install
```
## Execute
```bash
tinyurls -h
usage: tinyurls [-h] [-p PORT] [-d DATABASE]
optional arguments:
-h, --help show this help message and exit
-p PORT, --port PORT Port used for this service
-d DATABASE, --database DATABASE Database to use
tinyurls -p 8888
```
URL shortening service to be used in a microservices environment.
This service does the following:
1. Takes a long url and stores an md5 key and the url in a database table.
The md5 key is used to lookup the long url. This step returns an short link
with md5.
2. Takes a short link and redirects you to the long link.
## Installation
Use virtual environment
```bash
virtualenv env
source env/bin/activate
```
Change into tinyurls directory and install
```
cd tinyurls
python setup.py install
```
## Execute
```bash
tinyurls -h
usage: tinyurls [-h] [-p PORT] [-d DATABASE]
optional arguments:
-h, --help show this help message and exit
-p PORT, --port PORT Port used for this service
-d DATABASE, --database DATABASE Database to use
tinyurls -p 8888
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tinyurls-0.0.2.tar.gz
(4.0 kB
view hashes)
Built Distributions
tinyurls-0.0.2-py3.6.egg
(8.9 kB
view hashes)