1. 백엔드 세팅: 데이타베이스 세팅, 웹소켓 세팅 2. 프론트엔드 세팅: 웹소켓 세팅 3. 백엔드 프론트 엔드 연결테스트 4. 유저 로그인 5. 메시지 주고받기 >> npm i express, mongoose, cors dotenv http >> npm install nodemon >> nodemon app.js
Installation Either through cloning with git or by using npm (the recommended way): npm install -g nodemon ============================== const express = require('express') const app = express() app.listen(3000, () => { console.log('Server is running on port 3000') }) app.get('/', (r…
[■KodeJUN] [6] Node.js npm express ** app.js function sayHello(name) { // ...existing code... console.log('Hello ' + name); // ...existing code... } sayHello('John'); // ...existing code...
■ NodeJS.org [윈도우 환경] https://nodejs.org/en 1. NodeJS.org에 접속 한 후 LTS 버전을 다운받아 설치 2. VSCode 설치 https://code.visualstudio.com/download 다운로드 한 후 로그인 코파일럿 로그인 3. VSCode 에서 터미널 열어서 node 잘 설치되어있는지 확인 C:> node * Windows PowerShell 이 아닌 Command Prompt 에서 실행해야 함 ** 질문 PowerShell says "execution…
The Tailwind CSS Components Library For Coding 10x Faster Material Tailwind is an open-source library that uses the power of Tailwind CSS and React to help you build unique web projects faster and easier. The stunning design inspired by Material Design is a bonus! npm i @material-tailwind/react
Socket IO 뽀개기 - 01. Socket IO 알아보기 개발하는 정대리 1. Node.js 설치 2. 터미널이랑 친해지기 https://www.youtube.com/watch?v=FrWjN98QEuQ 3. 터미널에서 C:>code . 이렇게 치고 엔터치면 VS Code가 이 폴더를 기반으로 열림 4. NPM 사이트에서 npm i node 명령어로 노드 설치 5. npm i express 명령어로 express 설치 6. 소켓 아이오 공식문서 튜토리얼 따라하기 https://socket.io/docs/v…