Pedro Freitas

Greenhorn
+ Follow
since Feb 15, 2017
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
2
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Pedro Freitas

The problem with your code is that you are not posting anything with name "para1" in your requests. The notice PHP generated is pretty clear.

line 75 -> w= para1; should be w="para1="+para1; like you did above...
7 years ago
PHP
Yes. You are free to not use Waterline and in the most recent versions of Sails.js, if you want to swap it you need implement/use a ORM hook based on Waterline ORM hook. There are implementations for offshore and mongoose in NPM. Documentation about configuration of the framework is available here.

Most sails documentation can be found in here and it is maitained in here meaning that you can contribute if you find any typo or something not well explained.
Sails.js is a very versatile framework. It is a good JS framework for backend and it is frontend agnostic, meaning that you can use it with your favorite front-end frameworks like Ember and Angular.

My favorite feature of it is Waterline. This powerful ORM almost lets you completly abstract your code from DB implementations. I mean almost because in joining operations that are often use in SQL implementations, I find it hard to do them. But in most case scenarios it just works fine. Using this feature with the blueprint API lets you create the typical RESTful routes keeping your head headache free and DRY.

The whole thing is very tweakable for your use case and it follows the traditional MVC pattern very inspired from Ruby on Rails.

Give it a shot if you are looking for a decent and stable backend framework. Afterall Sails is a very mature and well maintained framework at this lifetime.

https://github.com/balderdashy/sails
This is a very good initative. I've been using Sails for a while and it would be a pleasure to receive o copy of this book!