{ sailsit }

Sails Js Tutorials for Beginners and Forum

Have a Question?

If you have any question you can ask below or enter what you are looking for!

All posts tagged project

MongoDB and MySQL Configuration

1. Create new project You can follow this tutorial for setting up sails project Setting up Sails project 2. Installing Packages To use MySQL/MongoDB, first you need to install adapter for it Install sails-mongo adapter using npm. npm install sails-mongo –save   Install sails-mysql adapter using npm npm install sails-mysql . . . Read more

Setting Up Sails Project

1. Creating Project Create a new sails project using below command sails new sails-first-project   2. Configuring Database Configure your DB connections config/connections.js Sails supports, MongoDB, MySQL, PostgreSQL 3. Configuring Models Configure DB connection name in config/models.js Note: Use exact DB connection name as defined in config/connections.js Change migrate method . . . Read more