Spring/[P] 눈치우기 봉사활동 매칭 플랫폼 11

OpenWeatherMap API 로 매일 날씨 정보 가져오기

❄️눈이 오는 날만 알림 문구 생성❄️ ☃️ OpenWeatherMap Key 발급받는 법 1. https://home.openweathermap.org/ 홈페이지 접속 2. 로그인 후 My API keys 찾기 3. Create Key 로 새로운 키 생성하기 (API key name 작성 후 → Generate) ☃️ 프로젝트에 발급받은 Key 등록하기 · application.properties # openweathermap api api.key=[발급받은 api 키] ☃️ JSON 파싱을 위한 dependencies 등록하기 · build.gradle ... dependencies { ... // json parsing implementation group: 'com.googlecode.json-s..

게시글 삭제하기

게시글 데이터를 데이터베이스에서 삭제 ☃️ Controller @RestController @RequiredArgsConstructor @Slf4j @RequestMapping("/volunteers") public class VolunteerController { private final VolunteerService volunteerService; // 봉사활동 구인글 삭제 @DeleteMapping("/delete/{volunteerId}") public ResponseEntity deleteVolunteer(@PathVariable("volunteerId") Long volunteerId) { volunteerService.deleteVolunteer(volunteerId); return new ..

게시글 댓글 작성하기 (대댓글X)

클라이언트 서버에서 전송한 게시글 댓글 데이터를 DB 에 저장 ☃️ Controller @RestController @RequiredArgsConstructor @Slf4j @RequestMapping("/comments") public class CommentController { private final CommentService commentService; // 봉사활동글 댓글 추가 @PostMapping("/volunteer") public ResponseEntity addCommentVolunteer(CommentSaveRequest request) throws IOException { commentService.addCommentVolunteer(request); return new Respo..

게시글 작성하기

클라이언트 서버에서 전송한 게시글 데이터를 데이터베이스에 저장 ☃️ Controller @RestController @RequiredArgsConstructor @Slf4j @RequestMapping("/volunteers") public class VolunteerController { private final VolunteerService volunteerService; // 봉사활동 구인글 작성 @PostMapping("/new") public ResponseEntity addVolunteer(@Valid VolunteerSaveRequest request) throws IOException { Long volunteerId = volunteerService.addVolunteer(request)..

최신 게시글 3개 조회하기

메인 페이지에서 보여줄 최신 게시글 데이터 3개 반환 ☃️ Controller @RestController @RequiredArgsConstructor @Slf4j @RequestMapping("/volunteers") public class VolunteerController { private final VolunteerService volunteerService; // 봉사활동 구인글 최신 3개 조회 @GetMapping("/recent") public ResponseEntity getThreeVolunteers(@RequestParam(value = "userId", required = false, defaultValue = "0") Long userId) { List responses = volu..

게시글 상세 조회하기

게시글 상세 페이지에 필요한 데이터 반환 ☃️ Controller @RestController @RequiredArgsConstructor @Slf4j @RequestMapping("/volunteers") public class VolunteerController { private final VolunteerService volunteerService; // 봉사활동 구인글 상세 조회 @GetMapping("/{volunteerId}") public ResponseEntity getVolunteerById(@PathVariable("volunteerId") Long volunteerId, @RequestParam(value = "userId", required = false, defaultValue =..

게시글 전체 조회하기

게시글 목록 페이지에 필요한 게시글 데이터 리스트 반환 ☃️ Controller @RestController @RequiredArgsConstructor @Slf4j @RequestMapping("/volunteers") public class VolunteerController { private final VolunteerService volunteerService; // 봉사활동 구인글 전체 조회 @GetMapping() public ResponseEntity getAllVolunteers(@RequestParam(value = "userId", required = false, defaultValue = "0") Long userId) { List responses = volunteerService...

[Git/Github] Issue - Branch - PR 만들기

1. Issue 등록하기 - Assignness 에 나를 할당하기 - Labels 설정 - Submit 후에 Development > Create a branch > feature/3-volunteer 브랜치 생성 2. 새로 생성한 Branch 에서 작업하기 # 업데이트된 상황 반영하기 git remote update # 현재 브랜치 전체 목록 확인하기 git branch -r # 새로운 브랜치로 이동 : git checkout [브랜치명] git checkout feature/3-volunteer # main 브랜치 머지하기 : git pull [리모트 저장소] [머지할 브랜치] git pull origin main 3. 기능 구현 후 PR 등록하기 - #(issue 번호 작성) : PR 이 merge..

[Git/Github] Github Repository 랑 IntelliJ 연동하기 : SSH Key

❄️ 이미 SSH Key 가 등록된 상태라면? ❄️ → cmd 창에서 git clone [git repository 주소] 명령어 실행하기 (git 이 설치된 상태) → 끝! 1. IntelliJ 프로젝트 실행하기 (아직 연동되지 않은 프로젝트) 2. Git 설치 후 IntelliJ → Setting → Tools → Terminal 에서 Git bash 설정하기 3. Git bash 터미널로 SSH Key 생성하기 ssh-keygen 4. Git Bash 터미널에서 SSH Key 복사하기 cat ~/.ssh/[생성된 Key 이름] # cat ~/.ssh/id_ed25519.pub 5. GitHub 에 SSH Key 등록하기 Setting → SSH and GPG keys → New SSH key → 5..

ERD 설계 & API 명세서

2024.01.10 - [Spring/[Project] 눈치우기 봉사활동 매칭 플랫폼] - 서비스 소개 & 기능 정리 서비스 소개 & 기능 정리 눈 치우기 봉사활동 매칭 플랫폼!! ❄️ SnowCare ❄️ ☃️서비스 소개 ❄️SnowCare❄️ 는 눈 치우기 봉사활동 매칭 서비스를 제공하는 웹앱 형태의 어플리케이션 입니다 😊 자신의 지역에서, 이 alsrudalsrudalsrud.tistory.com ☃️ ERD 회원 관리 → User Entity 봉사활동 구인 매칭 → Volunteer Entity → CommentVolunteer Entity → LikeVolunteer Entity 커뮤니티 → CommunityArticle Entity → CommentCommunityArticle Entity →..

728x90