I'm searching for the best possibility to write web applications that are heavy with JavaScript . So I'd like to present you my ideas and ask for your opinions and alternatives on this, please :)
1 year ago I started looking for possibilities for web development besides PHP. I found JSP and Django. I decided to go with Django. After starting up some projects with Django it lead me to conclude that Django, for me, doesn't provide a possibility for easy web development. I have to worry about too many features and especially the need to keep client and server code in balance.
So I started searching again and found CouchDB which provides a kind of cool back-end for Ajax applications. So my idea was to use CouchDB as database server, which only provides data-validation & storage and kept everything else to the client. Which apparently is not a new idea at all, but I haven't found any good example on this yet. Do you know any?
I'd like to have an architecture with the following components:
Do you have any suggestions for different software to use for those points?
Which handles requests like the following:
The initial request sends JavaScript files and basic HTML (only <body>
and <head>
tags) to the Client. The loaded JavaScript functions create the HTML code and insert it into the <body>
tag. From now on, the entire navigation on the website only requests JSON which is provided through the Websocket and processed by the client-side JavaScript.
Pros:
Cons:
Questions
Please also look at Answer 2
Bootstrap is one of the most used open source libraries of HTML, CSS, and JavaScript – popular web programming languages. Knowledge of the BootStrap tool is important because it helps in the smooth creation of mobile web applications which are responsive too.
They should have expertise in both front-end and back-end, applying web development best practices, databases, algorithms, and various architectures. You also need to understand if the company can provide a virtual or dedicated hosting platform.
Do you know any available solution for this kind of web development?
Take a look at at couchapps. It's written by the guys behind couchedb. It based on jquery but it would be not that hard to convert it it to work with mootools. There is also a nice JavaScript template engine called mustache. The template engine will work on both sides, browser and couchdb.
Do youthink writing web applications this way would be crank?
No. This is the way like most of googles apps (mail, docs, spreadsheet) work, there are also a bunch of frameworks work this way like sproutcore or cappuccino.
web server: which handles files and WebSockets or Polling ( Tornado or Eventlet )
I think couchdb will handle this as well
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With