Skip to content

Instantly share code, notes, and snippets.

@devifr
Last active September 19, 2017 03:36
Show Gist options
  • Save devifr/97d5a496872a27b96cefd32f558cf7de to your computer and use it in GitHub Desktop.
Save devifr/97d5a496872a27b96cefd32f558cf7de to your computer and use it in GitHub Desktop.
Use Express JS, use sequelize
On Folder For App do:
1. npm init -y
2. npm install --save express body-parser morgan sequelize pg pg-hstore passport-local passport express-session express-handlebars express dotenv bcrypt-nodejs
3. touch app.js
4. insert code in app.js
5. touch bin/www
6. insert code
7. npm i -D nodemon
8. npm install -g sequelize-cli
9. sequelize init
10. ...
source:
1. https://scotch.io/tutorials/getting-started-with-node-express-and-postgres-using-sequelize
2. https://code.tutsplus.com/tutorials/using-passport-with-sequelize-and-mysql--cms-27537
http://blog.soshace.com/en/2016/12/16/express-js-ejs-templating/ << next learn templating
@devifr
Copy link
Author

devifr commented Sep 19, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment