Giter Site home page Giter Site logo

django-liveview / liveview Goto Github PK

View Code? Open in Web Editor NEW
25.0 3.0 2.0 23 KB

Django LiveView: Framework for creating Realtime SPAs using HTML over the Wire technology

Home Page: https://django-liveview.andros.dev/

License: MIT License

Python 100.00%
channels django hotwire html-over-the-wire liveview ssr

liveview's Introduction

Django LiveView

Framework for creating a complete HTML over the Wire site or LiveView ########

Alternative text

Among its superpowers you can find **********************

  • Create SPAs without using APIs.
  • Uses Django's template system to render the frontend (Without JavaScript).
  • The logic is not split between the backend and the frontend, it all stays in Python.
  • You can still use all of Django's native tools, such as its ORM, forms, plugins, etc.
  • Everything is asynchronous by default.
  • Don't learn anything new. If you know Python, you know how to use Django LiveView.
  • All in real time.

System components communicate through realtime events, where events represent important actions. Every components can produce and consume actions, allowing asynchronous and decoupled communication.

LiveView is a Django application for creating a dynamic website using HTML over WebSockets.

Example template: https://github.com/Django-LiveView/starter-template

Quick start

  1. Add "liveview", "daphne" and "channels" to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        "daphne",
        "channels",
        "liveview",
        ...,
    ]
  2. Include, in settings.py, the Apps that will use LiveView:

    LIVEVIEW_APPS = ["website"]
  3. Run python manage.py migrate to create the LiveView models.
  4. Start the development server and visit http://127.0.0.1:8000/

liveview's People

Contributors

tanrax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.