{"id":24152103,"url":"https://github.com/lyju777/onebite-books-server-main","last_synced_at":"2026-04-11T12:03:20.845Z","repository":{"id":267721533,"uuid":"901645456","full_name":"lyju777/onebite-books-server-main","owner":"lyju777","description":"한 입 크기로 잘라먹는 Next.js(v15)","archived":false,"fork":false,"pushed_at":"2024-12-12T02:33:03.000Z","size":135,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T10:15:00.188Z","etag":null,"topics":["next15","react","vercel"],"latest_commit_sha":null,"homepage":"https://www.inflearn.com/course/%ED%95%9C%EC%9E%85-%ED%81%AC%EA%B8%B0-nextjs/dashboard","language":"TypeScript","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/lyju777.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":"2024-12-11T03:43:47.000Z","updated_at":"2024-12-27T13:18:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"19990238-6d08-4cda-9bc5-ea78c377ac02","html_url":"https://github.com/lyju777/onebite-books-server-main","commit_stats":null,"previous_names":["lyju777/onebite-books-server-main"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyju777%2Fonebite-books-server-main","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyju777%2Fonebite-books-server-main/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyju777%2Fonebite-books-server-main/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyju777%2Fonebite-books-server-main/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lyju777","download_url":"https://codeload.github.com/lyju777/onebite-books-server-main/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241411828,"owners_count":19958814,"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","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":["next15","react","vercel"],"created_at":"2025-01-12T10:15:00.546Z","updated_at":"2025-10-13T00:42:29.593Z","avatar_url":"https://github.com/lyju777.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 한입 북스(ONE BITE BOOKS)\n\n한 입 크기로 잘라먹는 Next.js 강의에 사용되는 백엔드 서버입니다.  \nNode.js 20(or LTS) 이상의 버전이 필요합니다. (24.06.03 기준)\n\n## 시작하기 (Getting Started)\n\n### 1. 코드를 다운로드하세요\n\n이 저장소를 Clone 또는 Fork 하세요 (별표도 찍어주시면 정말 감사 ... 👍)\n\n\u003cimg width=\"1483\" alt=\"image\" src=\"https://github.com/winterlood/onebite-books-server/assets/46296754/6e984ada-dc30-46a8-8cf2-abaf4c6feae9\"\u003e\n\n### 2. 의존성 설치\n\n로컬에서 다음 명령어를 통해 의존성을 모두 설치하세요\n\n```\n\u003e npm install\n```\n\n### 3. Supabse 설정하기\n\nSupabase에 가입한 다음 새로운 프로젝트를 생성합니다.\n\n프로젝트 생성이 완료되었다면 Settings 페이지로 이동한 다음  \n좌측 사이드바의 `Configuration \u003e Database` 섹션에서 `Connection String`을 복사합니다.  \n(하단의 그림 자료 참고)\n\n\u003cimg width=\"1361\" alt=\"image\" src=\"https://github.com/winterlood/onebite-books-server/assets/46296754/8576abcd-084a-4648-a8a7-7c15adb821a3\"\u003e\n\n복사한 `Connection String`을 `.env` 파일을 생성하여 다음과 같이 붙여넣습니다.\n\n```\n// .env\nDATABASE_URL=\"방금 복사한 Connection String\"\n```\n\n이때 `Connection String`의 `[YOUR-PASSWORD]` 부분을 자신이 설정한 비밀번호로 수정합니다.\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003e비밀번호를 까먹었다면?\u003c/b\u003e\u003c/summary\u003e\n\u003cdiv markdown=\"1\"\u003e\n\n앞서 `Connection String`을 복사한 페이지에서 드래그를 내려보면 아래 그림과 같이 `Reset Password` 버튼을 발견할 수 있습니다.  \n해당 버튼을 클릭해 새로운 비밀번호로 재 설정한 다음 `.env` 파일에 붙여넣습니다.\n\n\u003cimg width=\"1333\" alt=\"image\" src=\"https://github.com/winterlood/onebite-books-server/assets/46296754/effe86fe-8b0d-43a4-9368-6bf2a0b42806\"\u003e\n\n\u003c/div\u003e\n\u003c/details\u003e\n\n### 4. 데이터베이스 스키마 설정하기\n\n다음 명령어를 입력해 데이터베이스(Supabase) 스키마를 자동 설정합니다.\n\n```\nnpx prisma db push\n```\n\n### 5. 시드 데이터 삽입하기\n\n다음 명령어를 입력해 시드(기초) 데이터를 데이터베이스에 삽입합니다.\n\n\u003e (참고) 삽입되는 시드 데이터는 프로젝트 `prisma/seed/data.ts` 파일에서 확인할 수 있습니다.\n\n```\nnpm run seed\n```\n\n### 6. 서버 실행하기\n\n다음 명령어를 통해 프로젝트를 빌드한 다음 서버를 실행합니다.\n\n```\n\u003e npm run build\n\u003e npm run start\n```\n\n(참고) 개발모드로 서버를 실행하고 싶다면 다음 명령어를 입력합니다.\n\n```\n\u003e npm run start:dev\n```\n\n### 7. 데이터베이스 실시간 확인하기\n\n다음 명령어를 입력하면 데이터베이스를 실시간으로 조회가능한 URL로 접속됩니다.\n\n```\nnpx prisma studio\n```\n\n\u003cimg width=\"1222\" alt=\"image\" src=\"https://github.com/winterlood/onebite-books-server/assets/46296754/5c06d9aa-8f8b-4d9d-9763-9408e1724b13\"\u003e\n\n### 8. API 문서 확인하기\n\n다음 주소로 접속하면 Swagger로 제작된 API 문서를 확인하실 수 있습니다.  \n단 서버가 가동중일 때에만 동작하니 꼭 서버를 가동한 뒤 접속해주세요!\n\n**http://localhost:12345/api**\n\n\u003cimg width=\"1496\" alt=\"image\" src=\"https://github.com/winterlood/onebite-books-server/assets/46296754/e55f176b-8641-4484-bf36-9a3bc7590ac5\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flyju777%2Fonebite-books-server-main","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flyju777%2Fonebite-books-server-main","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flyju777%2Fonebite-books-server-main/lists"}