2025/01 11

comment 댓글 작성 / user별 게시글 리스트 작성

post에 댓글 컬럼을 추가하기@ColumnDefault("0")private int commentCount; 정상적으로 추가가 된 것을 확인할 수 있다.Hibernate:      alter table if exists community_post         add column comment_count integer default 0 not null post에 commentcount 추가하는 쿼리 추가 @Modifying @Query(value = "UPDATE PostEntity p " + "SET p.commentCount = p.commentCount + 1 , " + "p.updateDate = now() " + "WHERE..

개발/spring boot 2025.01.27

spring mysql 환경 구축

gridle에 spring framework 추가하기 id("org.springframework.boot") version "3.3.1"id("io.spring.dependency-management") version "1.1.5" 테스트를 하면 정상적으로 작동하는 것을 확인할 수 있다. localhost 808 mysql 추가lombok 추가 설치하기 환경변수에 mysql 추가한 다음 mysql-u root -p명령어 입력해서 mysql 시작하기 database가 성공적으로 생성이 된 걸 확인할 수 있다. applicatio.yml도 작성완료

개발/spring boot 2025.01.16

express 모듈 설치

express 모듈 설치하기 express - npm expressFast, unopinionated, minimalist web framework. Latest version: 4.21.2, last published: a month ago. Start using express in your project by running `npm i express`. There are 87854 other projects in the npm registry using express.www.npmjs.com -npm install express -index.js로 Hello World 출력하기-loclahos 3000 으로 들어가서 확인해 보면 Hello Wolrd가 출력이 된 것을 확인할 수가 있다.

개발/node js 2025.01.15

figlet 모듈 사용해보기

index.js 파일을 만들고 터미널에서 Hello World 출력해보기  npm-Node Package Manger의 약자로 Node.js에서 사용되는 패키지(라이브러리 또는 모듈)들을 관리하는 도구npm | Home npm | HomeBring the best of open source to you, your team, and your company Relied upon by more than 17 million developers worldwide, npm is committed to making JavaScript development elegant, productive, and safe. The free npm Registry has become the center of Javawww.npmjs..

개발/node js 2025.01.08