forked from sequelize/sequelize
-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Sushant edited this page Jun 29, 2016
·
6 revisions
We assume you already have node
and npm
installed into your system. Not sure about that, you can run these commands in terminal
node -v
# outputs like v6.2.0 , otherwise it will be an error
npm -v
# outputs like 3.8.9 , otherwise it will be an error
If not installed, you can get them from following sources
- Install single node version via Nodejs.org
- (Or my favorite) Use nvm and use multiple
node
andnpm
versions at once.
Next step is easy one, just goto your project directory via terminal and run following command
npm install --save sequelize
# this install sequelize to your project and save it in your package.json as well
Now you will have to install a database package. Here is the list of all database and their package you will need
Dialect | Package |
---|---|
MySQL | mysql |
Postgres | pg |
SQLite | sqlite3 |
MSSQL | tedious |
Say you want to use sequelize
with a Postgres database you will have to install pg
package.
npm install --save pg
You can connect to multiple databases, you just have to install the correct package as well :)
Getting Started
- Installation
- Basic Setup
- With Express.JS
- Sequelize CLI
- Relationships
- 1 : 1
- 1 : n
- n : m
- Polymorph
- Hooks
- Pooling
- Debugging
- Migrations
How To
Resources
Upgrade Guides
- 3.0 to 4.0
- 2.0 to 3.0
- 1.7 to 2.0
Help