All you need to understand CRUD and MVP in DRF

Overview

Book-Store-API

This an API which has been put in place just to make you order for books, upload books with price, image and all, pay and automtically download books

Installation

To install required packages, all you need to do is quite simple as long as you have pip. There's a requirements.txt file in the root directory so run pip install -r requirements.txt to have them installed. Ive filtered some packages you won't need but couldn't help it all

Usage

To register, send this as post request

    "username": "BloggeR",
    "password": "Tobsanifedip2468",
    "email": "[email protected]",
     "country": "Isla Sala y Gómez",
    "name": "Your daddy's sister"

Use your informations to login which will automatically redirect you to your profile.

Add a book with

    "name": "Wuthering Heights",
    "price": "4000",
    "text": "It all started with bro Heathcliff and Earnshaw",
    "image": "test.jpeg"

The major links of the api can be found in the home urls.py

Payment

Firstly, startup your ngrok server. If you dont't know how to do so, head over here for proper tutorial. After yve gotten your tunnel link, head on to your flutterwave dashboard and insert it to your Webhook under your settingsScreenshot 2021-10-14 at 8 12 44 AM

After that, insert the link into your ALLOWED_HOST in your settings.py file and your orders app views.py redirect_url above the flutterwave endpoint for your charges transaction. Also go back to your flutterwave dashboard and copy your test api secret key and put it in your orders app .env file.

Order a book with https://b271-102-89-0-58.ngrok.io/order-book/(book-slug) and pay with a dummy card

You might also like...
This repository provides a set of easy to understand and tested Python samples for using Acronis Cyber Platform API.

Base Acronis Cyber Platform API operations with Python !!! info Copyright © 2019-2021 Acronis International GmbH. This is distributed under MIT licens

Recreating my first CRUD in python, but now more professional

Recreating my first CRUD in python, but now more professional

🎅🏻 Helping santa understand ✨ python ✨

☃️ Advent of code 2021 ☃️ Helping santa understand ✨ python ✨

Catalogue CRUD Application
Catalogue CRUD Application

This Python program creates a relational SQL database hosted on the Snowflake platform, then opens a CRUD GUI to manipulate and view the data. In this application, it is used as a book catalogue. CURRENTLY WIP

Box CRUD API With Python
Box CRUD API With Python

Box CRUD API: Consider a store which has an inventory of boxes which are all cuboid(which have length breadth and height). Each Cuboid has been added

Simple Crud Python vs MySQL

Simple Crud Python vs MySQL The idea came when I was studying MySQ... A desire to create a python program that can give access to a "localhost" databa

For when you really need to rank things

Comparisonator For when you really need to rank things. Do you know that feeling when there's this urge deep within you that tells you to compare thin

ToDo - A simple bot to keep track of things you need to do

ToDo A simple bot to keep track of things you need to do. Installation You will

Owner
Oladipo Adesiyan
Oladipo Adesiyan
This is a vscode extension with a Virtual Assistant that you can play with when you are bored or you need help..

VS Code Virtual Assistant This is a vscode extension with a Virtual Assistant that you can play with when you are bored or you need help. Its currentl

Soham Ghugare 6 Aug 22, 2021
Tie together `drf-spectacular` and `djangorestframework-dataclasses` for easy-to-use apis and openapi schemas.

Speccify Tie together drf-spectacular and djangorestframework-dataclasses for easy-to-use apis and openapi schemas. Usage @dataclass class MyQ

Lyst 4 Sep 26, 2022
DRF magic links

drf-magic-links Installation pip install drf-magic-links Add URL patterns # urls.py

Dmitry Kalinin 1 Nov 7, 2021
A very simple boarding app with DRF

CRUD project with DRF A very simple boarding app with DRF. About The Project 유저 정보를 갖고 게시판을 다루는 프로젝트 입니다. Version Python: 3.9 DB: PostgreSQL 13 Django

null 1 Nov 13, 2021
switching computer? changing your setup? You need to automate the download of your current setup? This is the right tool for you :incoming_envelope:

?? setup_shift(SS.py) switching computer? changing your setup? You need to automate the download of your current setup? This is the right tool for you

Mohamed Elfaleh 15 Aug 26, 2022
Do you need a screensaver for CircuitPython? Of course you do

circuitpython_screensaver Do you need a screensaver for CircuitPython? Of course you do Demo video of dvdlogo screensaver: screensaver_dvdlogo.mp4 Dem

Tod E. Kurt 8 Sep 2, 2021
null 1 May 12, 2022
Inspect the resources of your android projects and understand which ones are not being used and could potentially be removed.

Android Resources Checker What This program will inspect the resources of your app and help you understand which ones are not being used and could pot

Fábio Carballo 39 Feb 8, 2022
ARA Records Ansible and makes it easier to understand and troubleshoot.

ARA Records Ansible ARA Records Ansible and makes it easier to understand and troubleshoot. It's another recursive acronym. What it does Simple to ins

Community managed Ansible repositories 1.6k Dec 25, 2022