프로젝트
📌 AWS에 데이터베이스 환경을 만들기 - AWS RDS 웹 서비스 백엔드에서는 코드 작성만큼 중요한 것이 데이터베이스를 다루는 일임 직접 데이터베이스를 설치하지 않고 AWS에서 제공하는 관리형 서비스인 RDS 사용 RDS(Relational Database Service) : AWS에서 지원하는 클라우드 기반 관계형 데이터베이스 하드웨어 프로비저닝, 데이터ㅔ이스 설정, 패치 및 백업과 같이 잦은 운영 작업을 자동화하여 개발자가 개발에 집중할 수 있게 지원하는 서비스 조정 가능한 용량을 지원하여 예상치 못한 양의 데이터가 쌓여도 비용만 추가로 내면 정상적으로 서비스 사용 가능 ⚡ RDS 인스턴스 생성하기 AWS 검색창에 rds 검색 RDS 대시보드에서 데이터베이스 생성 버튼 클릭 DB 엔진 선택 화면에서..
📌 AWS 서버 환경 - AWS EC2 ⚡ AWS란? ✔ AWS : Amazon Web Service 이번 장에서는 AWS 클라우드 서비스를 이용해 서버 배포를 할 것임 외부에서 본인이 만든 서비스에 접근하려면 24시간 작동하는 서버가 필수임 집에 PC를 24시간 구동 호스팅 서비스를 이용 클라우드 서비스를 이용 일반적으로 호스팅 서비스나 집 PC를 이용하는 것이 비용적으로 저렴함 특정 시간에만 트래픽이 몰린다면 유동적으로 사양을 늘릴 수 있는 클라우드가 유리함 클라우드 서비스 : 인터넷(클라우드)을 통해 서버, 스토리지(파일 저장소), 데이터베이스, 네트워크, 소프트웨어, 모니터링 등의 컴퓨팅 서비스를 제공하는 것 단순히 물리 장비를 대여하는 것이 아님 AWS의 EC2는 서버 장비를 대여하는 것이지만,..
📌 스프링 시큐리티와 OAuth 2.0으로 로그인 기능 구현하기 ✔ 스프링 시큐리티 : 막강한 인증과 인가 기능을 가진 프레임워크 스프링 기반의 애플리케이션에서는 보안을 위한 표준 ⚡ 구글 서비스 등록 ✔ 구글 서비스에 신규 서비스 생성 여기서 발급된 인증 정보(client와 clientSecret)를 통해서 로그인 기능과 소셜 서비스 기능 사용 ✔ 구글 클라우드 플랫폼 주소 : https://console.cloud.google.com 접속 후 프로젝트 선택 클릭 새 프로젝트 클릭 등록될 서비스의 이름 입력(원하는 이름) : ex) yeroni-springboot2-webservice ✔ 프로젝트 선택 후 API 및 서비스 클릭 사용자 인증 정보 사용자 인증 정보 만들기 OAuth 클라이언트 ID 만들..
📌 머스테치로 화면 구성하기 ⚡ 서버 템플릿 엔진과 머스테치 소개 ✔ 템플릿 엔진 : 지정된 템플릿 양식과 데이터가 합쳐서 HTML 문서를 출력하는 소프트웨어 클라이언트 템플릿 엔진 : 리액트, 뷰의 View 파일 등 브라우저에서 화면 생성 서버에서 이미 코드가 벗어남 서버 템플릿 엔진 : JSP, Freemarker 등 서버에서 구동됨 서버 템플릿 엔진을 이용한 화면 생성 : 서버에서 Java 코드로 문자열을 만든 뒤 이 문자열을 HTML로 변환하여 브라우저로 전달 ⚡ 머스테치 ✔ 머스테치 : 수많은 언어를 지원하는 가장 심플한 템플릿 엔진 루비, 자바스크립트, 파이썬, PHP, 자바, 펄, Go, ASP 등 현존하는 대부분 언어를 지원함 자바에서 사용할 때는 서버 템플릿엔진, 자바스크립트에서 사용될 ..