Skip to content

AngCosmin/boilerplate-sailsjs

Repository files navigation

Sails.js logo

Boilerplate Sails.js

A Sails boilerplate application

Features

  • JWT Authentication (Bearer)
  • Password encryption (bcrypt)
  • Authentication middleware

On branch websockets

  • Socket Authentication

Setup

Intall everything

npm install

Setup env

cp .env.example .env

Update DATABASE_URL with your details

Lift sails

# 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published