Simple Url Shortener
What is that?
Yet another url shortener built with Django framework.
Preview
HOW TO RUN?
1. Virtual Environment
First create a virtual environment by running this command.
$ python -m venv .venv
Add your SECRET_KEY
to the end of the .venv/bin/activate
file.
...
export SECRET_KEY="ThiSIsMyDjanGoSeCreTKey"
Activate your virtual environment
$ source .venv/bin/activate
Install dependencies via pip
$ pip install -r requirements.txt
2. Migrations
Django can create migrations for you. Simply run these commands to create migrations and migrate:
$ python manage.py makemigrations shortener
$ python manage.py migrate
3. Run Server
Run this command to start development server on your computer:
$ python manage.py runserver
You may access the server at http://localhost:8000/ by default.
TODO:
- Add AJAX to front end
- Make responsive
- Url previews and Twitter summary cards support
- Improve analytics