GithubHelp home page GithubHelp logo

kevinbowen777 / django-api-todo Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 1.1 MB

A demo of Django functionality using DRF

License: MIT License

Python 9.96% HTML 60.01% CSS 7.97% JavaScript 21.45% Dockerfile 0.60%

django-api-todo's Introduction

django-api-todo

Status GitHub Issues License

  • A basic to-do/task application & API built with Django 4.1 & Django REST Framework (DRF) 3.13 with a React frontend

Mirror repository

Table of Contents

Features

  • Application
    • Browseable Web API
    • SwaggerUI & ReDoc API documentation
    • User registration with email verification & social(GitHub) login
    • Bootstrap4 & crispy-forms decorations
    • Customizable user profile pages with bio, profile pic, & country flags
  • Dev/testing
    • Basic module testing templates
    • Coverage reports
    • Debug-toolbar available
    • Examples of using Factories & pytest fixtures in account app testing
    • shell_plus with IPython via django-extensions package
    • Nox testing sessions for latest Python 3.9, 3.10, and 3.11
      • black
      • Sphinx documentaion generation
      • linting
        • flake8
        • flake8-bugbear
        • flake8-import-order
      • safety(python package vulnerability testing)
      • pytest sessions with coverage
    • For additional links to package resources used in this repository, see the Package Index

Installation

  • git clone https://github.com/kevinbowen777/django-api-todo.git
  • cd django-api-todo/backend
  • Local installation
    • poetry shell
    • poetry install
    • Django backend
      • python migrate.py migrate
      • python migrate.py createsuperuser
      • python manage.py runserver
    • React frontend
      • cd frontend
      • npm start
  • Docker installation
    • docker-compose up --build
    • docker-compose exec backend python backend/manage.py migrate
  • URLs:

Testing

  • coverage run -m pytest
  • Nox (includes sessions for black, lint, safety, tests)
    • testing supported for Python 3.9, 3.10, 3.11
    • e.g. nox, nox -rs lint-3.11, nox -s tests

Application Demo

A live application demonstration (Frontend hosted at Netlify, backend at PythonAnywhere)


Screenshots

Home

Reporting Bugs

Visit the Issues page to view currently open bug reports or open a new issue.

django-api-todo's People

Contributors

kevinbowen777 avatar

Watchers

 avatar  avatar  avatar

django-api-todo's Issues

Reduce redundancy in views

We essentially repeat the queryset and serializer_class for each view, even
though the generic view extended is different. Take a look at how viewsets
and routers address this issue and allow us to create the same API views
and URLs with much less code.

ref: backend/todos/views.py

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.