ronaldcurtis / sails-ho

A starter app for sails.js, including authentication

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sails-Ho!

A Sails.js starter app with authentication and a better asset pipeline

Inpspired by sails-starter-app and includes:

  • User model
  • User Authentication using Passport
  • 'Remember Me' Login functionality
  • CSRF turned on by default
  • Views in Jade
  • Asset pipeline using connect-mincer. (See sails-connect-mincer for more details.)
  • Uses MongoDB as the default

Install

  • Clone the repo
  • cd into the directory
  • npm install
  • sails lift or node app.js

Deploying

Depploying for production requires an extra precompilation step compared to sails js:

  • cd into the directory
  • npm install
  • grunt production
  • Start the app

Routes:

  • /user/new - Create a new user
  • /login - Login
  • /admin - Protected Route. Must be authenticated to visit
  • /logout - Logout

About

A starter app for sails.js, including authentication


Languages

Language:JavaScript 100.0%