- make a client, server folder
server
npm install express cors mysql2
- after make a
index.js
file ,
npm install nodemon
- press ^c before
npm install nodemon
and maintain position in server folder.
- in "scripts" of `
package.json
, add a "start": "nodemon index.js"
- and try this
MySQL workbench
- create schema TutorialDB
- in server folder,
npm install sequelize sequelize-cli
problem during install sequelize and sequelize-cli
problem
zsh: command not found: sequelize
solving process
- and delete migration , seeders folder
- add a
Post.js
file in models folder
Post.js
- these are names of column
- and Post is the name of Table
in ./config/config.json
data INSERT SUCCESSFULLY
https://victorydntmd.tistory.com/26