Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ellisgl/epsiom
Express, Passport, Socket.io and MySQL Boilerplate (epsiom)
https://github.com/ellisgl/epsiom
express-js mysql passport-js socket-io
Last synced: 2 months ago
JSON representation
Express, Passport, Socket.io and MySQL Boilerplate (epsiom)
- Host: GitHub
- URL: https://github.com/ellisgl/epsiom
- Owner: ellisgl
- Created: 2017-02-08T04:02:23.000Z (almost 8 years ago)
- Default Branch: release
- Last Pushed: 2024-06-21T20:12:02.000Z (7 months ago)
- Last Synced: 2024-06-22T12:29:56.718Z (7 months ago)
- Topics: express-js, mysql, passport-js, socket-io
- Language: JavaScript
- Homepage:
- Size: 604 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Express, Passport, Socket.io and MySQL Boilerplate (epsiom)
===
The name says it all.Code based on:
* https://blog.risingstack.com/node-hero-node-js-authentication-passport-js/
* http://stackoverflow.com/questions/25532692/how-to-share-sessions-with-socket-io-1-x-and-express-4-xInstall
---
Download, extract and run `npm isntall`Default user/pass: admin password
Role Based Authorization
---
users table: role_id connects to the roles table.
roles table: role_id (auto inc) and a name.
role_roles table: role_id1 is for the role, role_id2 is the id of the role you want role_id1 to be able to access. Simplistic hierarchy.
Todo
---
Simple admin interface to add users, role and grant role permissions.