Giter Club home page Giter Club logo

realworld's Introduction

Implementation of real-world application: https://github.com/gothinkster/realworld/ using Django and HTMX.

An in-depth discussion of this implementation can be found here.

Tech Stack:

To install and run locally:

git clone https://github.com/danjac/realworld/ && cd realworld

python -m venv venv

source venv/bin/activate

pip install -r requirements.txt

./manage.py migrate && ./manage.py runserver

Note: this is just a reference implementation and is not intended for production use.

realworld's People

Contributors

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

Watchers

 avatar  avatar  avatar  avatar  avatar

realworld's Issues

Messed up UI on pressing the Browser Back button

Hi,
Just explored this version to study about how can HTMX, AlpineJS and Django Play together. Seeing a strange problem, when I press the back button from the browser, it just mess up the page UI with some gibbrish.

Htmx vs Unpoly

Hi Mr.Dan,
can you make an article to explain the deference between Htmx and Unpoly.
I'm using Unpoly with Django for now, and I'm used Htmx for testing but I think Unpoly more easer and it don't required more configuration.
the only problem in Unpoly that have poor docs for learning.

could not start the server

root@debian11:/realworld# python3 -m venv venv
root@debian11:
/realworld# source venv/bin/activate
(venv) root@debian11:/realworld# pip install -r requirements.txt
Collecting django==4.0.1
Downloading Django-4.0.1-py3-none-any.whl (8.0 MB)
|████████████████████████████████| 8.0 MB 916 kB/s
Collecting django-htmx===1.8.0
Downloading django_htmx-1.8.0-py3-none-any.whl (8.9 kB)
Collecting django-widget-tweaks==1.4.12
Downloading django_widget_tweaks-1.4.12-py3-none-any.whl (8.9 kB)
Collecting django-taggit==2.1.0
Downloading django_taggit-2.1.0-py3-none-any.whl (59 kB)
|████████████████████████████████| 59 kB 7.3 MB/s
Collecting markdown==3.3.6
Downloading Markdown-3.3.6-py3-none-any.whl (97 kB)
|████████████████████████████████| 97 kB 7.6 MB/s
Collecting asgiref<4,>=3.4.1
Downloading asgiref-3.5.2-py3-none-any.whl (22 kB)
Collecting sqlparse>=0.2.2
Downloading sqlparse-0.4.3-py3-none-any.whl (42 kB)
|████████████████████████████████| 42 kB 920 kB/s
Collecting importlib-metadata>=4.4
Downloading importlib_metadata-5.0.0-py3-none-any.whl (21 kB)
Collecting zipp>=0.5
Downloading zipp-3.10.0-py3-none-any.whl (6.2 kB)
Installing collected packages: zipp, sqlparse, asgiref, importlib-metadata, django, markdown, django-widget-tweaks, django-taggit, django-htmx
Successfully installed asgiref-3.5.2 django-4.0.1 django-htmx-1.8.0 django-taggit-2.1.0 django-widget-tweaks-1.4.12 importlib-metadata-5.0.0 markdown-3.3.6 sqlparse-0.4.3 zipp-3.10.0
(venv) root@debian11:
/realworld# ./manage.py migrate && ./manage.py runserver
Operations to perform:
Apply all migrations: accounts, admin, articles, auth, comments, contenttypes, sessions, taggit
Running migrations:
Applying contenttypes.0001_initial... OK
Applying contenttypes.0002_remove_content_type_name... OK
Applying auth.0001_initial... OK
Applying auth.0002_alter_permission_name_max_length... OK
Applying auth.0003_alter_user_email_max_length... OK
Applying auth.0004_alter_user_username_opts... OK
Applying auth.0005_alter_user_last_login_null... OK
Applying auth.0006_require_contenttypes_0002... OK
Applying auth.0007_alter_validators_add_error_messages... OK
Applying auth.0008_alter_user_username_max_length... OK
Applying auth.0009_alter_user_last_name_max_length... OK
Applying auth.0010_alter_group_name_max_length... OK
Applying auth.0011_update_proxy_permissions... OK
Applying auth.0012_alter_user_first_name_max_length... OK
Applying accounts.0001_initial... OK
Applying accounts.0002_alter_user_managers_user_followers... OK
Applying admin.0001_initial... OK
Applying admin.0002_logentry_remove_auto_add... OK
Applying admin.0003_logentry_add_action_flag_choices... OK
Applying taggit.0001_initial... OK
Applying taggit.0002_auto_20150616_2121... OK
Applying taggit.0003_taggeditem_add_unique_index... OK
Applying taggit.0004_alter_taggeditem_content_type_alter_taggeditem_tag... OK
Applying articles.0001_initial... OK
Applying articles.0002_article_favorites_alter_article_tags... OK
Applying comments.0001_initial... OK
Applying sessions.0001_initial... OK
Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).
October 29, 2022 - 11:55:12
Django version 4.0.1, using settings 'realworld.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

everything says ok but stopped there and no respond from the port or command line

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.