Coder Social home page Coder Social logo

spring-simple-board-example's Introduction

Intro

문의 계시판 예제

API

  • 전체 조회 GET /api/post/all
  • 게시판 생성 POST /api/board
  • 해당 글 조회 POST /api/post/view
  • 글 작성 POST /api/post
  • 글 삭제 POST /api/post/delete
  • 답글 작성 PSOT /api/reply

init SQL

CREATE DATABASE `simple_board`

CREATE TABLE `board` (
    `id` bigint NOT NULL AUTO_INCREMENT,
    `board_name` varchar(100) NOT NULL,
    `status` varchar(50) NOT NULL,
    PRIMARY KEY (`id`)
)

CREATE TABLE `post` (
    `id` bigint NOT NULL AUTO_INCREMENT,
    `board_id` bigint NOT NULL,
    `user_name` varchar(50) NOT NULL,
    `password` varchar(4) NOT NULL,
    `email` varchar(50) NOT NULL,
    `status` varchar(50) NOT NULL,
    `title` varchar(100) NOT NULL,
    `content` text NULL,
    `posted_at` datetime NOT NULL,
    PRIMARY KEY (`id`)
) COMMENT='게시글';

CREATE TABLE `reply` (
    `id` bigint NOT NULL AUTO_INCREMENT,
    `post_id` bigint NOT NULL,
    `user_name` varchar(50) NOT NULL,
    `password` varchar(4) NOT NULL,
    `status` varchar(50) NOT NULL,
    `title` varchar(50) NOT NULL,
    `content` text NOT NULL,
    `replied_at` datetime NOT NULL,
    PRIMARY KEY (`id`)
) COMMENT='답글';

spring-simple-board-example's People

Contributors

junhankoo avatar

Watchers

JH 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.