Skip to content

🚀 Express generator를 이용하여 만든 Express 기초 문서입니다.

Notifications You must be signed in to change notification settings

light9639/Express-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ Express-generator 기본 템플릿.

localhost_3000_

✨ Express-generator 기본 템플릿입니다. ✨

🎉 Express-generator 설치하기

  • npm, yarn을 이용하여 설치하려면
npm i -g express-generator(npm i 대신 install도 가능함.)
  • 전역 설치 후 터미널에 다음과 같이 입력한다.
express my-app --view=pug

✅ 추가 설치

  • 폴더로 이동 후 npm, yarn 설치
cd my-app
npm install

or

yarn
  • 설치 이후 localhost 포트 번호를 설정하려면 /bin/www.js로 이동 후 포트번호를 설정하면 됨.
var port = normalizePort(process.env.PORT || '3000');
app.set('port', port);
  • 설정 이후 npm run start 또는 yarn start 입력 후. 해당 포트를 기준으로 localhost:3000으로 접속하면 됩니다.

📎 출처

About

🚀 Express generator를 이용하여 만든 Express 기초 문서입니다.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published