📜 ⬆️ ⬇️

Blog on node.js

The fifth version of mvc Autodafe framework for node.js has been released. It became more convenient to write the code, now it is necessary to write less code, even less. Soon the code will not need to be written at all, it will be enough just to think about it.

An example of a controller action that makes two asynchronous requests to the database computes the index.html view and sends it to the client (while catching and processing all errors):

Site.prototype.index = function( response, request ){ response.send({ topic : this.models.topic.With( 'author', 'comments.author' ).find_by_pk( request.params.topic_id ), news : this.models.news.find_all() }); } 

')
Written detailed articles about the subtleties of working with controllers , user authorization and work with URL addresses .

And most importantly: a demo with a blog has been revised and documented in detail. A blog does not have rich functionality, but it can serve as a good starting point for developing your own application.



Source: https://habr.com/ru/post/155867/


All Articles