목록Node.js (7)
아보카도 Blog
정기님께서 정예반 수업 알려주셔서 A반 보충수업실가서 수업 잠깐 들었다. 1. 비구조화 할당 const 지영 = {name: "지영", score: 50} const new지영 = {...지영} 지영.name = "수정" 복사할 땐 그냥 쓰는 게 아니라 ...한 다음에 해당 파라미터를 써줘야한다. 2. map map은 리턴으로 T나 F로 하지 않는다. 특정 작업을 하고, return값을 저장한다. const mapResult = scores.map((scores:{...}) => { return { ...score, score: score.score + 5 } }) 만약 return 안써주고 싶으면 소괄호로 묶어주면 된다. const mapResult = scores.map((scores:{...}) =..
오늘은 후발대에서 app.js 파일을 생성하고, git repository와 branch 관리하는 법에 대해 배웠다. 후발대 숙련주차 과제 설명 notion은 여기에 1. .env 파일 작성 (port 3000) PORT = 3000 2. app.js 파일 작성: express 연결, dotenv 세팅, 연결 테스트 const express = require("express") const app = express() require("dotenv").config() app.get("/", (req, res) => { res.send("Hello World!") }) app.listen(process.env.PORT, () => { console.log(`Example app listening on port..
1. ERD 작성 과제 요구사항을 보며 어떤 테이블과 칼럼이 필요한지 작성해보자. 회원테이블: User id -> 1,2,3... 이런식으로 늘어남 (AutoIncrement, NotNull, Unique) - 테이블에서 유일하게 구분 가능함 nickname - 최소 3자 이상, 알파벳 대소문자(a~z, A~Z), 숫자(0~9) password - 최소 4자 이상이며, 닉네임과 같은 값이 포함된 경우 회원가입에 실패 게시글 테이블: Post id title content createdAt updatedAt user_id why: 특정 게시글의 해당하는 user_id와 일치하는 테이블의 정보만을 가지고 올 수 있다. (left join) 댓글 테이블: Comment id content createdAt u..
노드제스 후발대 자료를 쭉 읽어보며 부족한 부분을 채워넣고 있다. CS 기초 지식과 자잘한 개념들부터 해서 입문 과제 설명까지 해주시니 일석 이조! 1. CLI (Command-Line Interface) 명령 프롬프트 Window CMD 명령어 정리 [삼쾌한 IT] cmd 명령어 정리 1. dir : 하위 폴더 목록 보기 2. cd 폴더명 : 폴더명의 폴더로 이동 (경로변경) 3. cd.. 혹은 cd/ : 상위 폴더로 이동 혹은 최상위 폴더로 이동 4. mkdir 이름 : 하위 폴더 생성 (디렉터리 생성) 5. rmdir 이름 three-pleasure.tistory.com [Window] 💻 윈도우 터미널 명령어 목록 윈도우 CMD 명령어 목록 자주 쓸 것 같은 기초적인 명령어를 우선 추려봤다. ..
숙련주차 과제 너무 어려워서 실상 sequelize 등의 개인 과제를 거의 하지 못했다... 그나마 열심히 들은 해설 강의를 옆에서 받아적으며 본다. 1. swagger의 의미 api를 문서화하는 도구. 프로젝트에서 저장한 url들을 html화면으로 확인할 수 있게 해주는 프로젝트. 2. saas laas paas 클라우드 컴퓨팅, IaaS, PaaS, SaaS이란? 클라우드 컴퓨팅의 여러 서비스 모델 목차 Cloud Computing이란? 정리 클라우드 컴퓨팅은 서로 다른 물리적인 위치에 존재하는 컴퓨터들의 리소스를 가상화 기술로 통합해 제공하는 기술을 말합니 wnsgml972.github.io 3. 클라이언트 -> 컨트롤러 -> 서비스 -> 모델 -> DB 서비스는 실제로 로직을 수행하는 모듈이고 컨..
입문주차에 비해 과제를 시작하는 것부터 너무 늦었다. 1. ERD 일단 대충 그림만 그려놓은 ERD. 너무 텅텅 비었지만 하다보면 채워지겠지. 회원가입(name, password, email)과 로그인(name, password), 댓글 추가, 수정, 삭제 기능 (comments_content, user_id, user_password)로! 지난 입문주차에서 했던 것과 다르게 댓글을 수정, 삭제하는 권한을 password로 주는 것이 아니라 세션으로 주고 싶다. erd_trial_1 | DrawSQL Database schema diagram for erd_trial_1. drawsql.app 2. mongoose를 sequelize로 변경하기. 이건 강의에서 알려줘서 복붙했다. 데이터베이스를 no sq..
1. API Node 입문 개인과제 API 김수정 A new tool for teams & individuals that blends everyday work apps into one. pale-target-69e.notion.site 게시글 전체/특정 게시글 조회, 게시글 작성, 댓글 조회, 댓글 작성 구현 완료. 게시글과 댓글 수정과 삭제는 해내지 못했다. AWS 배포 완료 2. 코드 GitHub - tnwjd3315/nodejs_beginner_assignment Contribute to tnwjd3315/nodejs_beginner_assignment development by creating an account on GitHub. github.com 3. 과제 배포 ip 주소 게시글 전체 조회:..