Classify Django + AngularJS real event examples

I am working on a project with Django and AngularJS. I do know a little about both, but I've never integrated them into the other, and it's hard for me to find real world examples (other than tutorials, libraries, and starter kits) that would help take me to the next level.

I would like to read the code to see all the tools used (asset creation, deployment, ...), project layout, answer to specific problems, etc. In my opinion, I've got to the point where reading textbooks isn't "enough.

I want to read other people's code while I build my application.

I found good entry points with a Django-Angular doc , two spoons of Django book, and a good seed , but this is not enough to create a real project.

I would like to see examples with the following information:

  • Asset Generation System : (Django Pipeline, Grunt, Gulp, Other?)
    • Javascript, coffee, Rapyd, Pure, other?
    • Html, Jade, other?
    • Bootstrap, no border, different?
  • REST api : (Django-Rest-Framework, other?)
  • 3-channel data binding : (yes / no)
  • Uses Djangular / Django-angular : (yes / no)
  • Many Django apps : (yes / no)
  • Deployment automation : (yes, basic tools / no)
  • Production launch : visible demonstration?
  • Own documentation : (yes / no)
  • Django and Angular versions
  • other characteristics

I will give an example of an answer with the above seed, which is unsatisfactory because it is just a seed.

Thank!

+3


source to share


2 answers


Django , Angular , bootstrap , Gulp - Cookiecutter seed

Taiga

Taiga is a Interest Based Management Tool (Free Accounts). It is split into several parts where the backend is written with Django , frontend, with AngularJS . Also includes an ncurses client.



Real world - full stack Medium.com clone with many stacks (of which Django, Angularjs, Angular2, Vuejs, ...)

Pootle (Django + Backbone)

Pootle is a community localization server. It is an online tool that makes the translation process much easier. It allows for crowd translation, facilitates volunteer contributions, and provides statistics on ongoing work.

The backend is written in Django, front-end in Backbone (sorry little entorse to this post!).

+3


source


I use both AngualarJS and Django tools in the same project, but both tools are not related to each other as they do not address the same cases.

When you say "integrated into the other" I'm not sure what you are trying to do, but here is one way to make them work together:

  • You create a Django app and write a REST API (using DRF, Tastypie, Restless, etc.).
  • You are creating AngularJS app and you are calling your server web services using $ http

EDIT:

If you want to avoid code duplication, for example with data validation, you can do your validation at the "server" level, rather than at the "form" level. Let me explain:



When you do form validation in Django, your kind of "client-side" validation (which is not technically correct, but unreasonable). So if you have another app in AngularJS, you certainly won't be able to reuse the validation logic you put in Django.

However, if you choose to handle validation in models as part of your business logic and that you are using web services for angularJS clients, this is what happens:

  • When trying to submit a form using a Django page, the business logic is called
  • When you try to send a POST request with your data to your server API using AngularJS, the same business logic will be called.

This way you have the same business logic for both of your "clients".

But if you want to do an interface check, of course you will need to write N checks for N clients.

+1


source







All Articles