Start up virtual machine
python3 -m venv env
source env/bin/activate
Install Dependencies
pip3 install -r requirements.txt
Run API server
python3 manage.py runserver
Build the image with a tag
docker build -t backend:latest .
Run the docker image exposing port 8000
docker run -d -p 8000:8000 backend:latest
The --keepdb
will re-use the previous database built and --parallel
will run all tests in parallel
of each other. v 2
displays more detail for the test cases.
python3 manage.py test --keepdb --parallel v 2
Navigate to this link to see all our Twitter posts as JSON data.
Navigate to this link to see all our Twitter users as JSON data.