Upload
others
View
6
Download
0
Embed Size (px)
Citation preview
WIFI
ssid TheHatch
pw success!
Github
http://tinyurl.com/hfpkv63
SEQUELIZENodeJS ORM for SQL Databases
Upcoming MeetingsFebruary 16 - RIOT
Mike WardMarch 15 - Webpack
Miguel CastilloApril 19 - Angular2 + TypeScript
Bill Wagner
About Me
• Own and Run BrightDigit
• iOS Development• iPad• iPhone• Apple Watch
• JS Development• AngularJS• NodeJS• HTML5
Overview
• Why?• What is the purpose of Sequelize?
• What?• What does it do?
• How?• How does it work?
• What’s Next?• What are other things you can do?
elephant in the room
how about normal databases?
how it works
–Sequelize Home Page
“a promise-based ORM for Node.js and io.js. It supports the dialects PostgreSQL, MySQL, MariaDB, SQLite and MSSQL and features solid
transaction support, relations, read replication and more”
Sequelize - How?• Setup
• Models
• Relationships
• Validation and Error Handling
• Deployment
• Migration
Getting Started• NodeJS
• https://nodejs.org
• DB Browser for SQLite• http://sqlitebrowser.org
• Git• https://github.com
• Repo• https://github.com/leogdion/lansingjs-1601-sequelize.git
SetupHello World with NPM
ModelsHow to create and use models for the ORM
RelationshipsHow to create and use relationships
Validation and Error HandlingHow to do validation and handle errors
Whats Next?• Deployment
• Migration
• Hooks
• Transactions
• Raw Queries
• Advanced Promises
Thank You!
Upcoming Schedule
• JS Meetings• February 16 - RIOT - Mike Ward• March 15 - Webpack - Miguel
Castillo• April 19 - Angular2 + TypeScript -
Bill Wagner• Mobile Mondays - January 25 - Google
Jesse Flores