JPA 이전까지
https://ddingg.tistory.com/44
-
블로그 정리.
-
기본적인 GetMapping, Json으로 데이터 받아와 확인.
-
Annotation들과 JPA에 대한 학습 필요. Entity를 구성하는 것 까지 완료.
---w
CREATE SEQUENCE seq_id START 1;
-- Table: public.temporage_data
-- DROP TABLE public.temporage_data;
CREATE TABLE public.temporage_data
(
id integer NOT NULL DEFAULT nextval('seq_id'::regclass),
key text COLLATE pg_catalog."default" NOT NULL,
value text COLLATE pg_catalog."default" NOT NULL,
create_time timestamp without time zone NOT NULL,
CONSTRAINT temporage_data_pkey PRIMARY KEY (id)
)
TABLESPACE pg_default;
ALTER TABLE public.temporage_data OWNER to postgres;
- key, value를 받아 DB에 저장. - 완료
- key 값으로 DB에 있는 값을 Searching 해서 결과를 반환. - 완료
- 저장 후 이틀 이상 지난 값은 삭제. (매일 00시 마다 DB에서 삭제. Searching 해서 return 할 때 한번 더 check 해서 이틀이 지난 값은 return 되지 않게 함.) - 추가 예정
- /sign-up : parameter - email, password, name
- return type : String
- /sign-in : parameter - email, password
- return type : String
- 회원가입, 로그인 기능 추가.
- 세션 기능 추가 예정
- CI/CD git 연동 및 배포 완료.
- 로그인 세션
- 공유 기능
- CI/CD 완성 시키기
##result_code
0 : unexecpt error
1 : success
2 : email is not correct
3 : password is not correct
4 : Session ID is not correct
- 회원가입
- 로그인(Interceptor에서 Session 체크)
- 카테고리 생성
- 게시글 작성
- 게시글 공유