tylrs / django_url_shortener

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

  • Byteaq inspired by Bitly (aq is the top level domain code for Antarctica like ly is the code for Libya)

Set Up

  1. Install Python 3.11
    • if using homebrew on a mac, run brew install python@3.11
  2. Clone this repo locally to your machine
  3. Navigate into the repo from a terminal window: cd byteaq
  4. Create a Python virtual environment: python3 -m venv venv
  5. Active the virtual environment: source venv/bin/activate
    • Your terminal prompt should now be prepended with (venv)
  6. install dependencies needed for the virtual environment: python -m pip install -r requirements.txt
  7. Migrate database: python manage.py migrate
  8. Start server: python manage.py runserver
  9. Navigate to localhost:8000/byteaq

Run Tests

  1. Open new terminal window and activate new virtual env: source venv/bin/activate
  2. Run tests: python manage.py test byteaq

About


Languages

Language:Python 88.4%Language:HTML 11.6%