A Django RESTful API with PostgreSQL database for my tutorial: Django Rest Framework with PostgreSQL: A CRUD Tutorial.
- Have
Python
andpip
installed on your local machine
Create an isolated environment for the project with virtualenv
. You can install virtualenv
with the following command:
sudo pip install virtualenv
Create a new directory for the project:
mkdir myproject && cd myproject
Create a virtual environment for the project:
virtualenv env
Then, activate it:
source env/bin/activate
Clone the project from GitHub:
git clone https://github.com/j-rayX/crm_project.git
Install Django and other packages:
pip install django djangorestframework psycopg2
Finally, cd
into the crm_project folder and run the project:
python manage.py runserver
Spot on!
Go to http://localhost:8000/customer/ to see if the API is up and running.