After some small experiments I created a project that actually solves an actual problem for a local skateboardclub my son is part of. And the following project describes some of my findings using django and riotjs in a project.
This is ripped right out of the README.md of the project on GitHub
A base project for a django rest framework based API with a RiotJS-based client-side.
git clone http://github.com/weholt/django-riotjs-base cd django-riotjs-base python -m venv venv source /venv/bin/activate pip install -r requirements.txt python manage.py migrate python manage.py collectstatic python manage.py runserver
Go to localhost:8080
git clone http://github.com/weholt/django-riotjs-base cd django-riotjs-base docker-compose build docker-compose up
Go to localhost
- Django Rest Framework
- Axios.js (Ajax calls)
- Swagger & Core API (API documentation/testing)
- Materialize CSS (Stylesheet based on Material Design)
- Docker setup with docker-compose and PostgreSQL database and nginx as proxy for easy testing and deployment.
- localhost:8080/index : a simple view using riotjs and a custom web component/riot-tag.
- localhost:8080/api/core-docs/ : Core API documentation
- localhost:8080/api/swagger-docs/: Swagger API documentation
- localhost:8080/api/ : root of the example API
- Different kinds of authentication and user registration using api
- Frontend/client in seperate node.js-based project
- Websockets or pusher integration to avoid pulling to get updates from the server
- Make much of the same in other clientside frameworks to get experience.
- Look at Materialize RiotJs-based components allready available and integrate them.
0.1.0 : Initial release