Last active
May 24, 2018 02:37
-
-
Save vanessasoutoc/1fef3f10aa74570ddb262fbe98b9b2f0 to your computer and use it in GitHub Desktop.
Mini Curso Sequelize, Sequelize-cli
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//cria pasta do projeto | |
$ mkdir todolist | |
$ cd todolist | |
//inicia npm package | |
$ npm init | |
//instalar dependencias | |
$ npm i --save mysql2 | |
$ npm i --save sequelize | |
$ npm i --save sequelize-cli | |
//lista comandos sequelize | |
$ node_modules/.bin/sequelize help | |
//inicia pastas e arquivos sequelize | |
$ node_modules/.bin/sequelize init | |
//criar model task | |
$ node_modules/.bin/sequelize model:create --name task --attributes description:STRING,date:DATE,finished:BOOLEAN | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment