GithubHelp home page GithubHelp logo

subramanyaks / ayucaremanagement Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 2.0 14.57 MB

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.

Home Page: https://ayucare.herokuapp.com/

Python 89.39% CSS 2.29% HTML 8.32%
django-rest-framework python mongodb rest-api django restful-api django-application django-project django-rest-api heroku-deployment herokuapp

ayucaremanagement's Introduction

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

ayucaremanagement's People

Contributors

subramanyaks avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.