Juni_Dev_log

(LoL Play With Me?) ② 초안 그리기 (Back End) 본문

Project/LoL-Play-With-Me(Dev)

(LoL Play With Me?) ② 초안 그리기 (Back End)

Juni_K 2021. 1. 31. 21:31

LoL - Irelia


🛠 백엔드 (중점적으로!)

📌 Node.js(express) / MySQL 

[🗂 프로젝트 폴더 구조]

🗃LoL-Play-With-Me

- database
: ① user_schema.js (데이터베이스 스키마를 정의하는 파일)
: ② database.js (만들어진 스키마를 바탕으로, 데이터베이스 객체를 만들고, db 객체 추가하는 파일)

- node_modules
: npm install 한 modules 파일

- public
: ① images (이미지 파일)
: ② stylesheets (css 파일)
: ③ html 파일

- routes
: ① index.js (라우팅 모듈을 로딩하여 설정하는 파일)
: ② user.js (사용자 정보 처리 라우팅 모듈이 모여있는 파일)

- views
: 템플릿 파일들이 있는 폴더 (ejs, pug 등) ex) login_success.pug

app.js : 미들웨어를 담당하고 있는 파일

config.js : 설정정보가 적혀있는 파일

package.json : 설치한 npm 모듈들이 적혀있는 파일 

README.md : git repository 에 저장소 설명을 위한 파일

해당 구조로 프로젝트 파일의 구조를 계층화한다.

 

 

🗂 Git Repository

github.com/JiHoon-JK/LOL-Play-With-Me

Comments