Giter Club home page Giter Club logo

jwp-blog's Introduction

나만의 블로그 서비스

게시글 관련 기능

게시글 생성/조회 기능

  1. 게시글 작성 페이지 이동

    • 로그인하지 않은 사용자는 로그인 요청
    • 메인페이지(index.html)에서 게시글 생성 버튼을 누르기
    • GET /writing 으로 요청
    • 작성 페이지(article-edit.html)로 이동
  2. 게시글 작성

    • 로그인하지 않은 사용자는 로그인 요청
    • POST /articles 으로 요청
    • 게시글 생성 시 게시글은 ArticleRepositoryList<Article> articles에 저장한다.
    • 게시글 페이지(article.html)로 이동
  3. 게시글 목록 조회

    • 메인페이지 이동 시 GET / 으로 요청하여 전체 게시글 목록이 노출
  4. 게시글 조회

    • 메인페이지에서 게시글 클릭시 GET /articles/{articleId} 으로 요청하여 게시글 페이지로 이동

게시글 수정/삭제 기능

  1. 게시글 수정 페이지 이동

    • 작성자만 접근 가능
    • 게시글 페이지(article.html)에서 수정 버튼 누르기
    • GET /articles/{articleId}/edit 으로 요청
    • 게시글 수정 페이지(article-edit.html)로 이동
  2. 게시글 수정

    • 작성자만 접근 가능
    • PUT/articles/{articleId} 으로 요청 시 게시글 페이지(article.html)로 이동
  3. 게시글 삭제

    • 작성자만 접근 가능
    • 게시글 페이지(article.html)에서 삭제 버튼 누르기
    • DELETE /articles/{articleId} 으로 요청
    • 게시글 목록 조회 페이지(index.html)로 이동

회원 관련 기능

회원 등록/조회 기능

  1. 회원등록

    • 회원가입페이지(signup.html)에서 POST /users 로 요청
    • Spring Data JPA를 이용하여 DB에 user 정보를 저장
    • 생성 후 로그인 화면으로 이동
    • 회원가입 시 아래의 회원가입 규칙을 지켜야 하고, 위반 시 사용자에게 알려준다.

    회원가입 규칙

    • 동일한 email로 중복가입을 할 수 없다.
    • 이름은 2~10자로 제한하며 숫자나 특수문자가 포함될 수 없다.
    • 비밀번호는 8자 이상의 소문자, 대문자, 숫자, 특수문자의 조합이다.
    • 비밀번호 확인 기능이 동작해야 한다.
  2. 회원조회

    • GET /users 로 요청하여 회원목록페이지(user-list.html) 이동
    • DB에 저장된 회원 정보 노출

로그인 기능

  1. 로그인 기능

    • 로그인 성공 시 메인 화면을 띄우고 우측 상단에 사용자 이름을 띄운다.
    • 로그인 실패 시 상황에 맞는 실패 메시지를 띄운다.
      • 이메일이 없는 경우
      • 비밀번호가 틀린 경우
  2. 로그아웃 기능

    • 로그아웃 시 메인 화면을 띄운다.
  3. 기타

    • 로그인 한 유저가 로그인/회원가입 화면에 접근할 경우 메인 화면을 띄운다.

회원 수정/탈퇴 기능

  1. 회원 수정
    • 로그인한 사용자는 자신의 회원정보 수정 가능
    • 로그인하지 않은 사용자는 회원정보 수정 불가, GET /로 redirect
  2. 회원 탈퇴
    • 로그인한 사용자는 회원 탈퇴 요청 가능 (DELETE 메소드를 이용)
    • 로그인하지 않은 사용자는 탈퇴 요청시 GET /로 redirect

댓글 관련 기능

  1. 댓글 작성 시 작성자와 게시글 정보가 같이 저장
  2. 댓글 생성/조회/수정/삭제 조회 기능
    • 수정/삭제는 댓글 작성자만 가능

댓글 관련기능 구현하기 with ajax

  1. 댓글과 관련된 기능을 Ajax로 구현하기
  2. 기존 구현한 기능 중 필요한 부분을 Ajax로 구현하기

jwp-blog's People

Contributors

ddu0422 avatar pobiconan avatar

Watchers

 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.