Filo6699 / url_shortener

0 stars 0 forks source link

URL Shortener

A simple URL shortener implemented in Python with a touch of JS.

Demo

See the URL shortener in action: urlshort.xyz

Installation

  1. Clone the repository:

    git clone https://github.com/Filo6699/url_shortener
  2. (Optional) Create a virtual environment:

    python -m venv venv
  3. Install dependencies:

    pip install -r requirements.txt

    Note: For psycopg2, you can follow this guide. Consider using pre-compiled binaries if you are exploring for fun.

  4. Create a .env file based on .env.example.

  5. Set-up your database.

  6. Run the application:

    gunicorn -c gunicorn_config.py wsgi:app