JavaScript

Employee-Self-Service: Reactive and Non-Blocking Database Access using Play Framework and Anorm – (Part-4)

Reading Time: 2 minutes Last week, We have added Database Access as Reactive and Non-Blocking behaviour in Employee-Self-Service  application. Now we have added some more features. These are following: Achieving, Futures to use more idiomatic error handling. Replaced the embedded JS & CSS libraries with WebJars. Achieving, table pagination and sorting functionality. Before: def list() = Action.async { implicit request => val futureEmpList = scala.concurrent.Future { Employee.list } val timeoutFuture = Promise.timeout("Oops", Continue Reading

Employee-Self-Service – Building Reactive Play application with Anorm SQL data access – (Part-2)

Reading Time: 2 minutes Last week, We have created a simple Employee-Self-Service  application using Play Framework and Anorm SQL data access , which has CRUD facility. Now we have added more features, i.e. Handling asynchronous results with time-outs facility thus application is now reactive (Async + Non-Blocking) Play and Scala-based template engine implementation. Bootswatch-Yeti with Twitter Bootstrap 3.1.1 to improve the look and feel of the application Application screens: 1. Continue Reading

Employee-Self-Service – Building Reactive Play application with Anorm SQL data access – (Part-1)

Reading Time: < 1 minute This is a classic CRUD application, backed by a JDBC database. It demonstrates: Accessing a JDBC database, using Anorm. Integrating with a CSS framework (Twitter Bootstrap 3.1.1). Twitter Bootstrap requires a different form layout to the default one that the Play form helper generates, so this application also provides an example of integrating a custom form input constructor. Check the application and the code base Continue Reading

Sign-Up with Facebook, Twitter and Google using Node.js and MongoDB

Reading Time: < 1 minute Last week, we created a simple login application, which has sign up and login facility after successfully registration. Now we have added one more feature, i.e. Sign-up with Facebook, Twitter and Google. You can login with your facebook, twitter and google account. We’ll be adding some more features in this application very soon such as birthday reminder functionality. We have used Passport[authentication middleware for Node.js] Continue Reading

Easiest Way to Implement JOINs in MongoDB 2.4

Reading Time: 2 minutes Last year, I wrote a blog to implement JOINs in MongoDB. But this solution was applicable only for versions below Mongo 2.4. According to the release log of 2.4, this feature is removed. We could not use another collection on map reduce, which is invoked against a particular collection. Earlier it was permitted. MongoDB is a no-SQL database and doesn’t support joins. But if you Continue Reading

Sign in with LinkedIn " functionality

Providing a Sign in with LinkedIn functionality using Scala

Reading Time: 3 minutes To integrate a Sign in with LinkedIn functionality in your social project that is being built with Play 2.2.1, follow these steps ( this post summarizes the work done step by step). 1) Create a LinkedIn app (if you do not have one already) Follow the link https://developer.linkedin.com/documents/quick-start-guide‎ and create an app. Enter all the details including Site URL . The Site URL could be something Continue Reading

Validate Within a group of fields, ensure at least one is complete.

Reading Time: < 1 minute Within a group of two names, ensure at least one is complete. Validate at least one field must be filled or both using jQuery Validation Plugin and Bootstrap. Required pulgins 1. jQuery Validation Plugin jquery.validate.min.js additional-methods.js 2. Bootstrap bootstrap.min.css bootstrap.min.js For Code and live example click : here

A Simple Login Application in Node.js and MongoDB

Reading Time: < 1 minute Node.js, a software platform, built on google chrome runtime. It uses v8, the same run time environment, that google chrome uses. It is one of the best plateform to easily build scalable network applications(especially server-side). We have created Node.js Login Template with a nice User Interface. If you want to use Node.js as plateform and MongoDB as Database then this demo project can be used Continue Reading