Skip to content

Latest commit

ย 

History

History
75 lines (56 loc) ยท 5.3 KB

README.md

File metadata and controls

75 lines (56 loc) ยท 5.3 KB

์ธ์Šคํƒ€๊ทธ๋žจ ๋ฆฌ๋””์ž์ธ

Express.JS


Usage

[IMPORTANT]

VSCode ํ™•์žฅ ๊ธฐ๋Šฅ ์ค‘์—์„œ Prettier์™€ Eslint๋ฅผ ์„ค์น˜ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

์˜์กด์„ฑ ์„ค์น˜

yarn install

sequelize setting

npx sequelize db:create
-> create database

npx sequelize model:generate --name "tableName" --attributes title:string 
-> create model & migration file

npx sequelize migration:generate --name fk-category
-> create foreign key config file

npx sequelize db:migrate
-> model and migration file apply to db

npx sequelize db:seed:all
-> insert all dummy 

npx sequelize db:seed --seed filename
-> insert specify dumy


ํŠน์ • ํŒŒ์ผ์„ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ ํ•˜๋Š” ์ปค๋งจ๋“œ๋Š” ์•„์ง ์ฐพ์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค ใ… ใ…  ๋งŒ์•ฝ ์ฐพ์œผ์‹œ๋Š” ๋ถ„ ์žˆ์œผ๋ฉด readme ์ˆ˜์ • ๋ถ€ํƒ๋“œ๋ ค์š”

๊ฐœ๋ฐœ์„œ๋ฒ„ ์‹คํ–‰

npx nodemon app.js

Libraries

Express.js
Express.js
Sequelize
Sequelize
nodejs
Node.js
babel
Babel
webpack
Webpack
javascript
Javascript