O'Reilly logo

Sails.js Essentials by Shaikh Shahid

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

AngularJS app for client-side interaction

Our backend is almost done. We have the API exposed with the database integration. We need to design our UI now and call these APIs to make it functional.

We will use bootstrap for layout and AngularJS to handle the client-side interaction. Make sure that you download the bootstrap file from the official site and add it to the /assets/styles folder.

Here is a rough diagram of UI:

AngularJS app for client-side interaction

The following is our Index.html file in the /assets folder:

<!DOCTYPE html> <html> <head> <title>Sails Socket Demo - Maangalabs</title> <link rel="stylesheet" type="text/css" href="/styles/bootstrap.min.css"> <link rel="stylesheet" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required