Create stateless client forms with server models?

Client side (example)

JavaScript framework: Ember.js, AngularJS or KnockoutJS

Server (example)

Python-based: Flask, web2py, Django; or Ruby: Rails, Ramaze, Sinatra


Are there open-source server-side libraries that can accept database schemas (Models); and create MVVM or MVC client forms?

In particular, code generation search:

  • JSON HTTP RESTful API Endpoints
  • Validating callback forms in stateless JavaScript
+4
source share
3 answers
0
source

Although I have no experience with any of these libraries, they seem to exist:

http://activescaffold.com/ (based on Ruby on Rails) https://github.com/yeoman/yeoman/wiki/Yeoman-and-Express (Express is the Node.js backend)

Although (maybe) a little more work, you can also do this as part of Java Spring: http://www.myeclipseide.com/documentation/quickstarts/scaffoldingtutorial/scaffolding.html ( https://www.youtube.com/watch? v = T0id0xzuYBA )

Grails and Play framework (with http://minuteproject.wikispaces.com/Play ) can also be like this.

I would, however, carefully weigh the pros and cons of this approach. Besides the absolute basics, code generation methods are almost always more problems than they are worth it.

0
source

This is similar to what you would be looking for: http://blog.ricodigo.com/blog/2012/10/14/announcing-the-release-of-angularjs-scaffold/

It uses Ruby on the server side and creates an application with angular, boot and font on the client side.

Here is the code: https://github.com/patcito/angularjs_scaffold

0
source

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


All Articles