Git Product home page Git Product logo

userman3's Introduction

UserMan3

A sample project for DBP class in 2021 based on MVC architecture

  • adding community functionalities

Branches

  • master (default)
  • UserMan3a - using Ajax & REST contollers
  • UserMan3b - using Bootstrap
  • UserMan3m - using MyBatis

master branch

UserMan2 update branch로부터 변경된 클래스 및 JSP

  • controller.DispatcherServlet -- /WEB-INF 폴더 아래에 위치한 JSP로 forwarding 실행

  • controller.RequestMapping -- request mapping 정보 수정 및 추가

  • controller.comm.* 추가 -- 커뮤니티 기능 관련 컨트롤러들

  • controller.user.RegisterUserController -- 회원 가입을 위한 폼 요청 및 가입 요청 처리(폼에 커뮤니티 리스트 전달), 커뮤니티 id 파라미터 처리

  • model.User -- 커뮤니티 id 필드 추가

  • model.Community 추가

  • model.dao.UserDao -- 커뮤니티 소속 사용자 검색 메소드들 추가

  • model.dao.CommunityDao 추가

  • model.dao.ConnectionManager -- DB 접속 설정 외부화: context.properties 파일 이용

  • model.dao.JDBCUtil -- Sequence를 이용한 PK 값 생성 시 생성된 값 확인을 위한 메소드 추가

  • model.service.UserManager -- 커뮤니티 관련 기능 추가

  • resources/context.properties 추가 -- DB 접속 설정 값 정의

  • resources/schema.sql -- 커뮤니티 관련 DB 테이블 & 레코드 정의 추가

  • 모든 JSP를 /WEB-INF 폴더 아래로 이동 (외부로부터 요청 차단)

  • /css/community.css 추가 -- 커뮤니티 관련 style 정의

  • /WEB-INF/community/*.jsp 추가 -- 커뮤니티 관련 view pages

  • /WEB-INF/user/list.jsp -- list2.jsp와 동일 (JSTL + EL 활용 구현), 회원가입 링크에 대한 URI 변경

  • /WEB-INF/user/loginForm.jsp -- 회원가입 링크에 대한 URI 변경

  • /WEB-INF/user/registerForm.jsp -- 커뮤니티 선택을 위한 select 메뉴 추가

  • /WEB-INF/user/updateForm.jsp -- 커뮤니티 선택을 위한 select 메뉴 추가

  • /WEB-INF/user/view.jsp -- 커뮤니티 이름 및 링크 추가

Eclipse에서 local repository(clone)를 생성하고 project를 import하는 방법

(주의: 먼저 Github(https://github.com)에 로그인한 후 본 리파지토리(https://github.com/cspark0/UserMan3)에 접속해서 우측 상단의 Fork 버튼을 이용하여 본인의 계정으로 복제함)

  1. File 메뉴 > Import... > Git | Projects from Git
  2. Clone URI
  3. fork된 URI 입력(예: https://github.com/your_Github_username/UserMan3.git), user & password 값 입력
  4. branch를 모두 선택
  5. 생성할 local repository 경로 입력(예: C:\Users\사용자\git\UserMan3)
  6. 첫번째 옵션 "Importing existing Eclipse projects" 선택 >> Finish

처음에 import되는 프로젝트는 master branch이며, 다른 branch의 프로젝트를 import하거나 서로 전환하기 위해서는 다음과 같은 방법을 이용함

  1. Git Perspective 실행(툴바 오른쪽 상단의 Open Perspective 아이콘에서 Git 항목 선택)
  2. Git Repositories 창에서 UserManager > Branches > Remote Tracking 아래에 있는 branch들 중 원하는 branch를 선택해서 더블클릭
  3. Checkout as New Local Branch 실행
  4. Java EE perspective로 전환하여 checkout된 프로젝트 이용

Local 아래의 다른 branch로 전환하려면 그 branch 이름을 더블클릭하여 checkout하거나, Java EE perspective의 Project Explorer 창에서 프로젝트 이름을 마우스 우클릭한 후 Team > Switch To > branch 이름을 선택함

참고: Git 사용법

userman3's People

Contributors

cspark0 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.