2019-11-01 18:43:19 +00:00
|
|
|
Shortenit
|
2019-09-29 11:03:45 +00:00
|
|
|
=========
|
|
|
|
|
2019-11-01 18:43:19 +00:00
|
|
|
Shortenit is a tool to shorten urls.
|
2019-09-30 22:39:11 +00:00
|
|
|
|
2019-11-01 18:43:19 +00:00
|
|
|
**NOTE**: This is a very early draft project. Contributions are welcome.
|
|
|
|
|
|
|
|
Running
|
|
|
|
-------
|
|
|
|
|
|
|
|
To run ``shortenit``, first we need to have a running database. Shortenit uses `CouchDB <https://couchdb.apache.org/>`_ as a database.
|
|
|
|
CouchDB can run as a docker container.
|
|
|
|
|
|
|
|
.. code:: text
|
|
|
|
|
|
|
|
$ docker run -p 5984:5984 -d couchdb
|
|
|
|
|
|
|
|
|
|
|
|
At this point, visit the local instance `link <http://localhost:5984/>`_ and create the user credentials configured in ``config/config.py``.
|
|
|
|
|
|
|
|
Once the database is up and running and the credentials have been created, shortenit can be ran.
|
|
|
|
|
|
|
|
.. code:: text
|
|
|
|
|
|
|
|
$ pip install -e .
|
|
|
|
$ shortenit
|