ioanamoraru14 / vending-machine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:JavaScript 54.4%Language:HTML 43.7%Language:CSS 1.9%