Sails.js est une architecture MVC pour développer des applications temps réel modernes et robustes avec Node.js.

Si vous êtes un habitué des frameworks PHP MVC ou Ruby on Rails, vous devriez aimer Sails.js, un framework MVC reprenant les bases de RoR pour Node.js.
Si vous avez déjà fait vos premiers pas sur Node.js, vous aurez surement remarqué qu'il manque rapidement la couche MVC que l'on chérit tant dans nos frameworks préférés.
Grâce à Sails.js qui combine habillement Express.js et Socket.io, vous disposerez d'une base MVC solide pour vos développements d'app real-time.
En créant un Model grâce à la ligne de commande qui va bien, vous allez générer automatiquement une API JSON autour de l'entité avec un CRUD prêt à emploi:
# List of all users http://localhost:1337/user # Find the user with id 1 http://localhost:1337/user/1 # Create a new user http://localhost:1337/user/create?name=Fisslewick (or send an HTTP POST to http://localhost:1337/user) # Update the name of the user with id 1 http://localhost:1337/user/update/1?name=Gordo (or send an HTTP PUT to http://localhost:1337/user/1) # Destroy the user with id 1 http://localhost:1337/user/destroy/1 (or send an HTTP DELETE to http://localhost:1337/user/1)
Sails.js embarque un système d'identification et de rôles pour gérer la sécurité de vos contrôleurs...
Il gère même les assets avec une minification de vos CSS / JS automatique.
Voici une démo d'introduction au framework Node.js:
Alors, tenté ?
Pour poster un commentaire, vous devez être identifié. Vous pouvez choisir parmi ces trois méthodes d'identification:
Compte la Ferme du WebIdentifiez-vousInscrivez-vous |
Compte Facebook
|
Compte Twitter
|