Note: code_samples.md contains code samples for the training.
-
Download this repository using git clone:
git clone https://github.com/shaunagm/building-APIs-with-DRF.git
-
Set up a virtual environment which uses Python 3. You may need to install virtualenv and/or install Python 3. Once you've got everything installed, you can create a virtualenv with the following command:
virtualenv -p python3 venv
Then, you can run the virtual environment with the command:
source venv/bin/activate
-
Next, install the project requirements:
pip install -r requirements.txt
-
Run the project and check that everything’s working. Navigate to the mysite directory and run:
python manage.py runserver
Then, you can open up the project in your browser. You should see a message telling you that you've finished setting up.