A fork from sails-passport with the intention of providing required data and REST API service to Bappeda Kota Banda Aceh.
- Clone this repo and
cdto your destined folder - Make sure your MySQL server is running
- Rename
/config/connections_example.jsto/config/connections.jsand change the value ofmysqlServerin/config/connectionsto reflect your own MySQL setup conf (make sure to use new dedicated database since it will alter the database, unless you change the config in connections.js ) - run
npm install - run
sails lift
- if you have
npm installwithbcrypterror such asnode-gypbuild error, it is okay, since I already subtitute bcrypt withbcrypt-nodejsin the app implementation. If you are perfectionist, just deletebcryptfrompackage.jsondependency and you all set.
This is as minimal as it can be. Use it as your boilerplate to startup your REST API server, and as your playground to understand sailsjs concept + setup Passport authentification in server. For Accessing the functionality, you can use postman or better yet, download my other repo angular-passport. MIT License
Copyright © 2016 Zuhra Sofyan