Express is a simple web application framework for building hybrid web applications. You can render web pages, generate customized responses and create user-friendly APIs quickly with ease. It just fits the trade with Node.js. This post covers the installation and hello world example: Installation: buntu@ubuntu:~$ sudo npm install express express@3.1.0 node_modules/express ├── methods@0.0.1 ├── fresh@0.1.0 … Continue reading Express for Node.js
Tag: Web page
Tornado – Autoreload
One of the most irritating (i would say) things about web development is about restarting your web server whenever there's a change in the code base or the template files to test if the development change has been propagated correctly... If you're a web developer you know exactly about the agony I'm referring to... Well, … Continue reading Tornado – Autoreload
Tornado – Internationalization
Web development often calls for internationalization (i18n), Tornado provides this facility with tornado.locale class. In the example below, we create request handlers to cater to users request for different locale. For instance, DEHandler renders a standard web page (locale_template.html) in German language after translating the English words from the template. https://gist.github.com/3402066 Translation is governed … Continue reading Tornado – Internationalization
Tornado – Authentication
As we have seen, Tornado helps you deal with Cookies and Secure cookies so what's the next logical thing? Yes, user login. Let's look at the Tornado's capability for providing user authentication. Tornado provides get_current_user() method to determine if the user is already logged in. Developers need to override this method to get the current … Continue reading Tornado – Authentication
Tornado – Cookies
Cookies are used by web developers or designers to store data on the client side. When user submits some information to the server, the server takes a decision based on posted data and redirects the user to relevant page. But when user browses to all together a different page, this information is lost. Cookies help … Continue reading Tornado – Cookies