vscode

vscode.nodejs.express.setup

javackr 2025. 2. 4. 09:36


1. 윈도우용 node.js 설치

#전역설치 > C:\Users\user\AppData\Roaming\npm\node_modules
npm install -g express@latest
npm install -g express-generator@latest
npm install -g @vue/cli

#Express설치
express backend --view=ejs > cd backend > npm install > set DEBUG=backend:* > npm start > http://localhost:3000/

#Vue설치
vue create client(폴더)  > cd client > yarn serve > http://localhost:8080/

#React설치
npx create-react-app client(폴더)  > cd client > npm start > http://localhost:3001/

2. 모듈설치
yarn add express tslib express-formidable express-session mysql mariadb nodemon memorystore morgan cors multer socket.io fs express-fileupload async

3. 참조
$ DEBUG=backend:* npm start // On MacOS or Linux, run the app with this command:
> set DEBUG=backend:* & npm start //On Windows Command Prompt, use this command:
PS> $env:DEBUG='backend:*'; npm start //On Windows PowerShell, use this command: