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
- Clone the repo
cd
into the directorynpm install
sails lift
ornode app.js
Depploying for production requires an extra precompilation step compared to sails js:
cd
into the directorynpm install
grunt production
- Start the app
- /user/new - Create a new user
- /login - Login
- /admin - Protected Route. Must be authenticated to visit
- /logout - Logout