A Sails boilerplate application
- JWT Authentication (Bearer)
- Password encryption (bcrypt)
- Authentication middleware
On branch websockets
- Socket Authentication
npm install
cp .env.example .env
Update DATABASE_URL
with your details
# fire up the server
sails lift
If you are trying to connect to a local database and you are not using SSL then go to config/datastores.js and set ssl: false
When using branch websockets
:
After you are connected, make a PUT
request to /socket
to update the socket_id
of the user in database