https://github.com/trasherdk/node-passport-sequelize-handlebars
https://github.com/trasherdk/node-passport-sequelize-handlebars
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/trasherdk/node-passport-sequelize-handlebars
- Owner: trasherdk
- Created: 2022-03-29T13:01:02.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-23T09:05:38.000Z (about 3 years ago)
- Last Synced: 2025-02-16T14:07:23.748Z (over 1 year ago)
- Language: JavaScript
- Size: 228 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node MySql Sequelize MVC with Passport, Express, and Handlebars
## Note: This thing was originally forked from the now stale [`node-passport-sequelize`](https://github.com/jaymascarenas/node-passport-sequelize)
### Getting started
This repo contains everything you need to get started on your next full-stack node application.
Simply run:
```npm install```
Update your config.json file with your database credentials and create your database before running node.js
In your controllers folder each route that users can access while signed in, you just add an ```isLoggedIn``` middle-ware call to the route to allow the logged in user to reach that route/page.
i.e:
```
app.get('/home', isLoggedIn, (req, res) => {
res.render('home');
});
```
Add some unit tests and you will be off to building a great app.
Enjoy!