Skip to content

A repository to demonstrate the microservices development using Django.

Notifications You must be signed in to change notification settings

uday160386/django-backend-app-demo

Repository files navigation

Creating Microservices - Django REST

Features

  • Creating a microservices for a customer who can access customer portfolio
    • The customer portfilio includes- Coin access, Exchanges -Thirdparty
  • This is just a template and customizable according to your project requirement

Tech

Tools used to create microservices:

  • Django-REST - build and project configuration
  • Docker - An open source UI automation tools
  • PyTest - A library used for UnitTesting
  • Postman - A tool used for API Testing
  • Pact-IO - Writing Contract Tests
  • Locust-IO - A tool used for performance testing
  • Anchore - A tool used for Container security testing
  • Database - For now, default database

Design

picture

Installation

This requires [python] 3.0+

Install the dependencies and devDependencies and start the server.

Download the repository using
        git clone https://github.com/uday160386/udays-tj-backend-app.git
    and do
        python3 -m venv venv
        source venv/bin/activate
        pip install -r requirements.txt

Build with Docker

    docker build -t <DOCKER_PATH>:<TAG>

Run with Docker compose locally

    Docke-compose up

How to execute Tests?

    API Testcases are available at tests/ 
        Run the postman collection using Newman in CI:
            "newman run tests/Django-REST-Backend-Testing.postman_collection.json -e
            tests/env/Django-REST-Backend-Dev_env.postman_environment.json 
            -d tests/data/data.csv -r htmlextra --reporter-htmlextra-export ./results/report.html"
     
            

Note:The above paths are for reference and can be saved at your preferred path

How to view Report?

    Reports are available at : "./results/report.html"

Sample Report

picture

CI View

picture

work is still in progress .....

About

A repository to demonstrate the microservices development using Django.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published