Skip to content

Soptkathon-27th-nalul/nalul-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

19 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” λ‚˜λ₯Ό [nalul] - Server

'λ‚˜λ₯Ό' λ‚˜μ—κ²Œ μ€‘λ…μ‹œν‚€λ‹€. 맀일 맀일 λ‹Ήμ‹ μ˜ 9가지 쑰각을 찍어 μ˜¨μ „ν•œ λ‚˜λ₯Ό κΈ°λ‘ν•˜κ³  λ‹€κ°λ„μ—μ„œ λŠκ»΄λ³΄μ„Έμš”.


πŸ–₯ Code convention

  • git commit message rule
[Setting] μ„ΈνŒ…

[Add] μΆ”κ°€

[Delete] μ‚­μ œ

[Update] μ—…λ°μ΄νŠΈ

ex) "[Setting] gitignore μ„€μ •"

πŸ—‚ API λͺ…μ„Έμ„œ

api 링크

πŸ”— sequelize Model

db.User = require('./user')(sequelize,Sequelize);
db.Post = require('./post')(sequelize,Sequelize);
db.Class = require('./class')(sequelize,Sequelize);
db.Question = require('./question')(sequelize,Sequelize);

/* 1 : N   User : Post */
db.User.hasMany(db.Post, { onDelete: 'cascade' });
db.Post.belongsTo(db.User);

/* 1 : N   Class : Question */
db.Class.hasMany(db.Question);
db.Question.belongsTo(db.Class);

/* 1 : N   Question : Post */
db.Question.hasMany(db.Post);
db.Post.belongsTo(db.Question);

/* 1 : N   Class : Post */
db.Class.hasMany(db.Post);
db.Post.belongsTo(db.Class);

πŸ“‹ ERD

image

πŸ“Œ κΈ°λŠ₯ μ†Œκ°œ

  • μ΄μˆ˜μ§„ - Write : 질문, κ²Œμ‹œκΈ€ μž‘μ„±

  • μ‹ μ§€ν˜œ - Splash : νšŒμ›κ°€μž… , Detail : μ‚¬μ§„λ¦¬μŠ€νŠΈ


βš™οΈ 개발 ν™˜κ²½ 및 μ‚¬μš©ν•œ 라이브러리

  • Node.js : λŸ°νƒ€μž„ ν™˜κ²½
  • Express : NodeJs Framework
  • NPM : NodeJS package manager
  • PM2 : NodeJS process manager


About

πŸ‘€ nalul-Server Repository πŸ‘€

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published