In this step, we are going to set up the web server. Let' start by installing the necessary frameworks. To do this in Python, we want pip.
apt-get update apt -y install python3-pip
With pip installed, we're ready to set up the Django framework and create our
pip install djangorestframework django-admin startproject rest .
Let's start our service. It won't do much... yet!
python3 manage.py runserver & sleep 3 clear
Notice that we started the service in the background so we can keep working. Let's hit the service to verify it's up and running. If the service is running, the following command will print out the HTML from the server.