Basic create, read, update and delete for students marks and total is here with super cool User Interface. MongoDB, A NoSQL database is used to store data. A Restful web service for accessing the students details is created and deployed into a docker container for easy management of infrastructure
- Install Docker Desktop here
- Go to the project root folder and run the following commands
docker-compose build
docker-compose up
- Go to 127.0.0.1:8000 to view the output
- Django
pip install django
- Djongo
pip install djongo
- MongoDB
- Django Rest Framework
pip install djangorestfamework
First we need to create the db directory where the database files will live in. In your terminal navigate to the root of your system by doing cd..
until you reach the top directory. You can create the directory by running mkdir /data/db
. Now open a different tab in your terminal and run mongod
to start the Mongo server.
Go to the project directory and run python manage.py runserver
/students
retrieves all student details
/students/<id>
retrieves details of that particular student