Coder Social home page Coder Social logo

cat-nile / catmentoringservice Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 28.19 MB

고양이 온라인 익명 멘토링 서비스(Laravel)

Shell 0.03% Python 1.17% C++ 13.64% C 81.45% DTrace 0.29% Roff 0.51% PHP 2.47% JavaScript 0.01% Blade 0.44%
composer laravel php valet

catmentoringservice's Introduction

Laravel Logo

Build Status Total Downloads Latest Stable Version License

고양이 온라인 익명 멘토링 서비스

⌛ 개발 기간

2022/08/25 ~ 2022/08/30

Getting started

Installation

Please check the official laravel installation guide for server requirements before you start.

You have to follow this MySQL Settings(Very important!!).

  • user: root
  • password: test1234
  • database: laravel

To make new database, use this command

create database laravel;

Clone the repository

    git clone https://github.com/Cat-Nile/CatMentoringService.git

Switch to the repo folder

    cd CatMentoringService

Install all the dependencies using composer

    composer install

Copy the example env file and make the required configuration changes in the .env file

    cp .env.example .env

Run the database migrations (Set the database connection in .env before migrating)

    php artisan migrate:refresh --seed

Start the local development server

    php artisan serve

You can now access the server at http://localhost:8000

기획

고양이 멘토가 멘티들에게 익명 멘토링을 해주는 서비스를 제작하려고 합니다.

질문 (예시)

  • 제목: 집사에 대한 질문입니다.
  • 내용: 제가 먼치킨 고양이인데 집사가 다리짧다고 놀리는데 냥냥펀치 날려야 할까요?
  • 질문 타입: 집사후기

답변 (예시)

  • 내용: 츄르주면 용서하는데 안 줬다면 날려도 무죄입니다.
  • 채택 여부: Y/N

유저(고양이) 정보 (예시)

  • 품종: 먼치킨
  • 나이: 10살
  • 털 색깔/무늬: 삼색
  • 유저 형태: 멘토

데이터

질문 타입 종류

  • 사료
  • 그루밍
  • 집사 후기

유저(고양이) 정보 - 품종 종류

  • 터키쉬 앙고라
  • 스코티쉬 폴드
  • 러시안 블루
  • 먼치킨
  • 코리안 숏헤어
  • 스노우슈

유저(고양이) 정보 - 나이 종류 (민감한 정보입니다.)

  • 1살 ~ 15살

유저(고양이) 정보 - 털 색깔/무늬 종류

  • 흰색
  • 회색
  • 검정색
  • 삼색
  • 턱시도
  • 고등어
  • 치즈

유저(고양이) 정보 - 유저 형태 종류

  • 멘토
  • 멘티

개발 조건

  1. 유저(고양이) 정보 받아오기 - 비회원 조회 불가

    • 품종
    • 나이
    • 털색깔/무늬
    • 유저형태
  2. 질문 가져오기 - 비회원 조회 가능

    • 제목
    • 내용 (전체 내용이 아닌 처음 20글자만 가져오기)
    • 작성 날짜
    • 유저 정보 (민감 정보 제외)

    pagination 1page당 9개의 아이템

  3. 질문과 답변 가져오기 - 비회원 조회 가능

    • 제목
    • 내용
    • 작성 날짜
    • 유저 정보 (민감정보 제외)
    • 답변 리스트
      • 답변 내용
      • 답변 채택 여부
      • 답변 날짜
      • 답변자 유저 정보 (민감정보 제외)
  4. 질문 등록

    • 질문은 제목, 내용, 질문 타입이 꼭 입력되어야 합니다.
  5. 질문 삭제

    • 질문에 답변이 달린 이후에는 삭제가 불가합니다.
  6. 질문 수정

    • 질문에 답변이 달린 이후에는 수정이 불가합니다.
  7. 답변 작성

    • 답변이 3개 이상 달린 경우 작성이 불가합니다.
  8. 답변 수정

    • 해당 답변이 채택된 이후엔 수정이 불가합니다.
  9. 답변 삭제

    • 해당 답변이 채택된 이후엔 삭제가 불가합니다.

API 명세서

ID URI METHOD 기능
1 /api/posts POST 질문 생성
2 /api/posts GET 질문 목록 조회
3 /api/posts/int:postid GET 질문 단건 조회
4 /api/posts/int:postid PATCH 질문 수정
5 /api/posts/int:postid DELETE 질문 삭제
6 /api/posts/int:postid/comments POST 답글 생성
7 /api/posts/int:postid/comments/int:commentid PATCH 답글 수정
8 /api/posts/int:postid/comments/int:commentid DELETE 답글 삭제
9 /api/sign-up POST 회원가입
10 /api/sign-in POST 로그인
11 /api/users GET 고양이 회원 조회



API 예시

- 고양이 회원목록 조회

고양이회원목록조회

- 고양이 회원가입

회원가입

- 고양이 로그인(토큰 값 조회)

로그인

- 질문 목록 조회

질문목록조회

- 질문 단건 조회

질문단건조회

- 질문 생성

질문생성

- 질문 수정

질문수정

- 질문 삭제

질문삭제

- 답글 생성

답글생성

- 답글 수정

답글수정

- 답글 삭제

답글삭제


데이터 제약조건

- 답글이 달린 경우, 질문 삭제 불가

답글달린_질문은_삭제불가

- 답글 3개 초과 등록 시, 추가 작성 불가

답글3개_초과시_추가작성불가

- 채택된 답글은 수정, 삭제 불가

채택답글은_수정_삭제_불가

- 페이지네이션 적용(페이지 당 9개)

페이지네이션9

기술 스택

  • Back-End :   

  • ETC   :     

catmentoringservice's People

Contributors

cat-nile avatar

Watchers

 avatar

catmentoringservice's Issues

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.