{"id":19673674,"url":"https://github.com/vsfe/flask_sandbox","last_synced_at":"2026-06-03T23:31:20.088Z","repository":{"id":83479824,"uuid":"375418878","full_name":"VSFe/flask_sandbox","owner":"VSFe","description":null,"archived":false,"fork":false,"pushed_at":"2021-07-24T14:27:09.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-27T05:29:35.675Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VSFe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-09T16:20:32.000Z","updated_at":"2021-07-24T14:27:11.000Z","dependencies_parsed_at":"2023-07-09T23:02:35.967Z","dependency_job_id":null,"html_url":"https://github.com/VSFe/flask_sandbox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VSFe/flask_sandbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VSFe%2Fflask_sandbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VSFe%2Fflask_sandbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VSFe%2Fflask_sandbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VSFe%2Fflask_sandbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VSFe","download_url":"https://codeload.github.com/VSFe/flask_sandbox/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VSFe%2Fflask_sandbox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285704842,"owners_count":27217839,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-21T02:00:06.175Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T17:15:56.687Z","updated_at":"2025-11-21T23:03:34.342Z","avatar_url":"https://github.com/VSFe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask_sample\n\n## 설치 및 실행\n\n**1. 의존성 다운**\n\n```bash\npip3 install -r requirements.txt # virtualenv 사용 권장\n```\n\n**2. DB 및 기본 설정**\n\n- app/constants.py 수정 (db 설정에 맞춰 변경)\n- app/__init__.py 수정 (app.config['SERVER_NAME'] 및 app.config['DEBUG'] 변경)\n- 다음 명령어 입력\n\n```bash\npython3 manage.py db init\npython3 manage.py db migrate\n```\n\n**3. 서버 실행**\n\n```bash\npython3 manage.py run\n```\n\n\n## API 명세\n\n### 회원 관련 API\n\n### `POST` signup\n\n```html\nPOST /user/signup\n```\n\n- Request Example\n\n```json\n{\n    \"fullname\": \"Kim Byeong Cheol\",\n    \"email\": \"klm03025@gmail.com\",\n    \"password\": \"test1234\"\n}\n```\n\n- Response\n    - 200: Signup Success\n    - 409: Signup Failed\n    - 500: Internal Server Error.\n\n### `POST` login\n\n```json\nPOST /user/login\n```\n\n- Request Example\n\n```json\n{\n    \"email\": \"klm03025@gmail.com\",\n    \"password\": \"test1234\"\n}\n```\n\n- Response\n    - 200: Login Success\n    - 404: User Not Found\n    - 409: Login Failed\n    - 500: Internal Server Error\n\n### `GET` logout\n\n```json\nGET /user/logout\n```\n\n- Response\n    - 200: Login Success\n    - 404: Not Logged in\n    - 500: Internal Server Error\n\n### `GET` info\n\n```json\nGET /user/info\n```\n\n- Response\n    - 200: Success\n    - 500: Internal Server Error\n\n```json\n{\n    \"status\": \"Loggedin\",\n    \"fullname\": \"Kim Byeong Cheol\",\n    \"email\": \"klm03025@gmail.com\"\n}\n```\n\n-----------------------------------\n\n\n### 게시판 관련 API\n\n### `POST` create\n\n```json\nPOST /board/create\n```\n\n- Request Example\n\n```json\n{\n\t\"name\" : \"자유게시판\"\n}\n```\n\n- 로그인이 선행 되어야 함.\n- Response\n    - 200: Success\n    - 404: User Not Found\n    - 409: Created Failed\n    - 500: Internal Server Error\n\n### `GET` read\n\n```json\nGET /board/{board_name}\n```\n\n- Response\n    - 200: Success\n    - 404: Board Not Found\n    - 500: Internal Server Error\n\n```json\n{\n    \"message\" : \"Read Success\",\n    \"name\" : \"자유게시판\",\n    \"article\" : [\n\t\t\t...\n    ]\n}\n```\n\n### `DELETE` delete\n\n```json\nDELETE /board/{board_name}/delete\n```\n\n- 로그인이 선행되어야 하며, 본인이 만든 게시판만 삭제할 수 있음.\n- 게시판에 글이 1개 이상 존재할 경우 삭제할 수 없음.\n- Response:\n    - 200: Success\n    - 404: Board Not Found\n    - 409: Not Enough Permission, Board Has Articles\n    - 500: Internal Server Error\n\n### `POST` update\n\n```json\nPOST /board/{board_name}/update\n```\n\n- Request Example\n\n```json\n{\n    \"name\": \"비밀게시판\"\n}\n```\n\n- 로그인이 선행되어야 하며, 본인이 만든 게시판만 수정할 수 있음.\n- Response:\n    - 200: Success\n    - 404: Board Not Found\n    - 409: Not Enough Permission\n    - 500: Internal Server Error\n\n\n------------------------------------\n\n\n### 게시물 관련 정보\n\n### `POST` create\n\n```json\nPOST /board/{board_name}/create\n```\n\n- Request Example\n\n```json\n{\n    \"title\": \"배가 고파요\",\n    \"content\": \"말 나온 겸 오늘 야식이나 시켜먹으려고 하는데, 뭘 시켜야 잘 시켰다고 소문이 날까요?\"\n}\n```\n\n- 로그인이 선행되어야 함.\n- Response:\n    - 200: Success\n    - 404: Board Not Found\n    - 409: Not Enough Permission\n    - 500: Internal Server Error\n\n### `GET` read\n\n```json\nGET /board/{board_name}/{article_id}\n```\n\n- Response:\n    - 200: Success\n    - 404: Article Not Found\n    - 500: Internal Server Error\n\n### `DELETE` delete\n\n```json\nDELETE /board/{board_name}/{article_id}/delete\n```\n\n- 로그인이 선행되어야 하며, 본인의 글이 아니면 삭제할 수 없음.\n- Response:\n    - 200: Success\n    - 404: Article Not Found\n    - 409: Not Enough Permission\n    - 500: Internal Server Error\n\n### `POST` update\n\n```json\nPOST /board/{board_name}/{article_id}/update\n```\n\n- 로그인이 선행되어야 하며, 본인의 글이 아니면 수정할 수 없음.\n- Response:\n    - 200: Success\n    - 404: Article Not Found\n    - 409: Not Enough Permission\n    - 500: Internal Server Error\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvsfe%2Fflask_sandbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvsfe%2Fflask_sandbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvsfe%2Fflask_sandbox/lists"}