- Byteaq inspired by Bitly (aq is the top level domain code for Antarctica like ly is the code for Libya)
- Install Python 3.11
- if using homebrew on a mac, run
brew install python@3.11
- if using homebrew on a mac, run
- Clone this repo locally to your machine
- Navigate into the repo from a terminal window:
cd byteaq
- Create a Python virtual environment:
python3 -m venv venv
- Active the virtual environment:
source venv/bin/activate
- Your terminal prompt should now be prepended with
(venv)
- Your terminal prompt should now be prepended with
- install dependencies needed for the virtual environment:
python -m pip install -r requirements.txt
- Migrate database:
python manage.py migrate
- Start server:
python manage.py runserver
- Navigate to
localhost:8000/byteaq
- Open new terminal window and activate new virtual env:
source venv/bin/activate
- Run tests:
python manage.py test byteaq