A only API project for learning to write API with Sails.js (v0.12.4)
- Generate with CLI.
- Play with the types of associations.
- Play with Datatype defined in models ORM/ODM docs.
- Master route.
- Master policies.
- Master controller.
- Try with Hybrid Web App (Using frontend and backend in the same project).
- Try with Seperate projects, one using Sails for API, one using AngularJS or ReactJS.
- Use rawSQL https://sailsjs.com/documentation/reference/waterline-orm/models/query
- Use MySQL Connection steps by steps
-
- Create new MySQL DB.
-
- Install
sails-mysqlpackage.
- Install
-
- Edit connection to MySQL in
config/connections.js.
- Edit connection to MySQL in
-
- Point to new connection and use in Models at
config/models.js
- Point to new connection and use in Models at
-
- Define models file with attributes then run
sails lift, the new tables will be created in MySQL DB.
- Define models file with attributes then run
-
- Use sails-seed to seed data.
- For deployment, check Deployment document.
- Build-a-todo-app-using-sailsjs-and-angularjs
- Sails101 Tutorials
- Fix gitignore is not working
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"