- Python 3.9
- Django 3.0.5
- Django Rest Framework 3.12.1
- djongo 1.3.3
- django-cors-headers 3.5.0
- MongoDB 3.4 or higher
-
Step 1:- Clone this repository
-
Step 2:- Open
CourseRestApiMongoDB-master
folder in Visual Studio Code -
Step 3:- Open Terminal and run below commands to install all dependencies
pip install djangorestframework
:- Django REST framework helps us to build RESTful Web Services flexibly.pip install djongo
:- Django MongoDb connector to work with MongoDb database.pip install django-cors-headers
:- Requests to our Django application from other origins.pip install django-cors-headers
:- Django-cors-headers library
-
Step 4:- Run Django Project with command:
python manage.py runserver 8081
The console shows:
python manage.py runserver 8081 Performing system checks... System check identified no issues (0 silenced). Novomber 6, 2020 - 16:24:01 Django version 3.0.5, using settings 'CourseRestApiMongoDB.settings' Starting development server at http://127.0.0.1:8081/ Quit the server with CTRL-BREAK.