Skip to content

This is my internship project. Main aims to create an REST API for Ayucare Management using Django REST Framework to perform operations to get post data. For database Mongodb is used.

Notifications You must be signed in to change notification settings

SubramanyaKS/AyuCareManagement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Djongo Based REST Api Development for Ayucare Management.

GitHub language count

Django

Django is a high-level Python web framework that enables rapid development of secure and maintainable websites. Built by experienced developers, Django takes care of much of the hassle of web development, so you can focus on writing your app without needing to reinvent the wheel. It is free and open source, has a thriving and active community, great documentation, and many options for free and paid-for support.

Djongo

Djongo is a SQL to mongodb query transpiler. It translates a SQL query string into a mongoDB query document. As a result, all Django features, models etc work as is

REST API

A REST API (also known as RESTful API) is an application programming interface (API or web API) that conforms to the constraints of REST architectural style and allows for interaction with RESTful web services. REST stands for representational state transfer and was created by computer scientist Roy Fielding

Ayucare Management: This is management system where we can get the details of products from Ayucare.and sell the products.


Technologies used.

  • Framework : Django
  • Database : MongoDB
  • Programming language: Python
  • Hosted/ Deployed : Heroku

This is the project is done for my internship at Ekathva Innovation Pvt.Ltd.

Project is hosted on the heroku app. Click the Link to view.


Project Structure.

📦 
├─ .gitignore
├─ Ayucare
│  ├─ __init__.py
│  ├─ __pycache__
│  │  ├─ __init__.cpython-38.pyc
│  │  ├─ settings.cpython-38.pyc
│  │  ├─ urls.cpython-38.pyc
│  │  └─ wsgi.cpython-38.pyc
│  ├─ asgi.py
│  ├─ settings.py
│  ├─ urls.py
│  └─ wsgi.py
├─ AyucareApp
│  ├─ __init__.py
│  ├─ __pycache__
│  │  ├─ __init__.cpython-38.pyc
│  │  ├─ admin.cpython-38.pyc
│  │  ├─ apps.cpython-38.pyc
│  │  ├─ models.cpython-38.pyc
│  │  ├─ serializers.cpython-38.pyc
│  │  └─ views.cpython-38.pyc
│  ├─ admin.py
│  ├─ apps.py
│  ├─ migrations
│  │  ├─ 0001_initial.py
│  │  ├─ 0002_auto_20210926_1136.py
│  │  ├─ 0003_auto_20210926_1145.py
│  │  ├─ 0004_purchased_user.py
│  │  ├─ __init__.py
│  │  └─ __pycache__
│  │     ├─ 0001_initial.cpython-38.pyc
│  │     ├─ 0002_auto_20210926_1136.cpython-38.pyc
│  │     ├─ 0003_auto_20210926_1145.cpython-38.pyc
│  │     ├─ 0004_purchased_user.cpython-38.pyc
│  │     └─ __init__.cpython-38.pyc
│  ├─ models.py
│  ├─ serializers.py
│  ├─ static
│  │  └─ site.css
│  ├─ templates
│  │  ├─ home.html
│  │  └─ layout.html
│  ├─ tests.py
│  └─ views.py
├─ README.md
├─ db.sqlite3
├─ manage.py
└─ requirements.txt

©generated by Project Tree Generator


Prerequisite.

  1. Python
  2. Git

How to install and run the Application.

  1. Install Python from the python website.

  2. Install Virtual environment globally

$ pip install virtualenv
  1. To Get Started, Fork the repository to your github account:

  2. Clone this repository:

git clone https://github.com/SubramanyaKS/AyuCareManagement.git
  1. Then install python django and all requirements:
pip install -r requirements.txt
  1. Create the DB tables first, connect to it and migrate:
python manage.py makemigrations
python manage.py migrate
  1. Create a Super User:
python manage.py createsuperuser 
  1. Run the development web server:
python manage.py runserver

Open the URL http://localhost:8080/ to access the application.


API Endpoints

HTTP Verbs Endpoints Action
GET /users To get the user list
POST /users To post/add the user data
DELETE /users/:userid to delete the record of particular user id
PUT /users/:userid To update the record of particular user id
GET /ayucare To get the ayucare product list
POST /ayucare To post/add the ayucare product data
DELETE /ayucare/:ayucareid to delete the record of particular ayucare product id
PUT /ayucare/:ayucareid To update the record of particular ayucare product id
GET /purchased To get the ayucare purchased list
POST /purchased To post/add the ayucare purchased data
DELETE /purchased/:purchasedid to delete the record of particular ayucare product purchased id
PUT /purchased/:purchasedid To update the record of particular ayucare product purchased id

If you like the work 🌟 the repository.

Thank you with ❤ Subramanya KS

About

This is my internship project. Main aims to create an REST API for Ayucare Management using Django REST Framework to perform operations to get post data. For database Mongodb is used.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published