목록2024/08/16 (6)
wintertreey 님의 블로그
나는 이번 프로젝트에서 open api를 통해 주간날씨를 구현하고 싶었다. 위는 구글과 네이버의 주간날씨의 예시이다. 해당날짜, 아이콘, 온도에 대해서 보여주고있다. 한칸에 하루치를 보여주고, 가로로 여러날짜의 결과를 보여준다. 날씨를 구현하고자 api 를 찾아봤다. 일반적으로 많이들 이용하는 사이트가 openweathermap.org였다.회원가입을 하고, 각자가 받은 api key 값을 주어진 링크에 넣어 json형태로 데이터를 받을 수 있다. 공짜로 얻을 수 있는 데이터의 종류는 다음과 같았다. 현재날씨, 3시간마다의 5일치의 날씨.보통 찾아본 결과, 현재날씨 데이터로 많이들 구현하던데 나는 주간날씨를 원했기 때문에, 3시간마다 5일치의 날씨 정보를 사용하기로 했다. 위치 설정하기해당 사이..
Ref: "place"."p_no" "likes"."target_no"Ref: "review"."r_no" "likes"."target_no"Ref: "flea_market"."m_no" "likes"."target_no"Ref: "flea_market"."m_id" "files"."f_user_id"Ref: "user"."id" "flea_market"."m_id"Ref: "flea_market"."m_no" "chat"."c_flea_no"Ref: "review"."r_no" "report"."report_target_no"Ref: "flea_market"."m_no" "report"."report_target_no" 대부분의 테이블 no에 pk를 주었고, 연관되는 테이블의 칼럼들을 일대다 관계로 까..
백엔드 집중이기에, 데이터분석에 대해서 제대로 배우지는 않지만그래도 수업들은 내용을 기록하고자 "기록용"으로 해당 포스팅을 작성한다. 데이터분석에 대한 것은 추가적으로 리서치나 공부가 필요할 것으로 예상. 컴퓨터로 하기에, 이미지여도 최종적으로 숫자로 분석한다. 예를들어 오리그림도 인간은 한눈에 인식.컴터는 이걸 픽셀로 모눈으로 자르고 인식한다. 데이터숫자/문자에 의미를 부여하는것.의미를부여했을때 비로소 목적이 파악된다.데이터는 가공이 포인트. "분산" 데이터분석에서는 추론통계, 추리를 한다.가설검정 회귀 분류 군집. 데이터 분석이란 무엇인가요?데이터 분석은 원시 데이터를 실행 가능한 인사이트로 변환합니다. 여기에는 데이터를 사용해 추세를 찾아서 문제를 해결하는 데 사용되는 도구, 기술, 프..
프로젝트 생성하기. npm init -y npm i expressnpm i --save-dev nodemonnpm i corsnpm i mariadb db와 연동하기위해 mariadb도 설치해주었다. 시작! db 연동작업을 위해, db.mjs파일을 하나 만들어준다.import mariadb from 'mariadb';const pool = mariadb.createPool({ host:'127.0.0.1', user:'root', password:'123', database:'test', connectionLimit:5});export default pool; 포트번호, 파일경로등 세팅작업import express from "express";import path from "p..
타임리프를 사용하여 구현해보자. 시작하는 index.htmljson 처리: 단일자료json처리: 복수자료ajax 요청처리(jQuery)ajax 요청처리(fetch) 컴포넌트 데이터처리@Component@Datapublic class MyModel { private String name; private String skills[];} json 처리반환값이 1개일경우@Controllerpublic class JsonController { @Autowired private MyModel myModel; @GetMapping("list") @ResponseBody public MyModel getJson(@RequestParam("name") String name) { myModel.setName(nam..
Git 이란 분산형 버젼 관리 시스템의 한 종류이며, 빠른 수행 속도에 중점을 둔다. 버젼관리 시스템파일의 변화를 시간에 따라 기록했다가 나중에 특정시점의 버젼을 다시 꺼내올 수 있는 시스템. - 각 파일 혹은 프로젝트 통째로 이전 상태로 되돌릴 수 있다.- 시간에 따라 수정 내용 비교가 가능하다.- 파일을 잃어버리거나 잘못 고쳤을때도 쉽게 복구할 수 있다.- 누가, 언제 문제를 일으켰는지 쉽게 추적할 수 있다. Git 의 장점소스 코드를 주고 받을 필요 없이, 같은 파일을 여러 명이 동시에 작업하는 병렬 개발이 가능하다.(브랜치를 통해 개발한 뒤, 본 프로그램에서 합치는 방식(Merge)으로 개발을 진행할 수 있다.)분산 버전 관리이기 때문에 인터넷이 연결되지 않은 곳에서도 개발을 진행할 수 있고,..