{"id":26922868,"url":"https://github.com/mikan3rd/nest-next-sample","last_synced_at":"2025-09-11T23:34:40.752Z","repository":{"id":37031697,"uuid":"306380851","full_name":"mikan3rd/nest-next-sample","owner":"mikan3rd","description":"NestJS +  Next.js sample application / Backend and Frontend use only TypeScript!!!","archived":false,"fork":false,"pushed_at":"2025-04-03T21:49:15.000Z","size":1801,"stargazers_count":141,"open_issues_count":19,"forks_count":16,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T22:32:42.761Z","etag":null,"topics":["apollo","backend","docker","frontend","graphql","nestjs","nextjs","prisma","react","reactjs","typescript"],"latest_commit_sha":null,"homepage":"","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/mikan3rd.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":"2020-10-22T15:28:25.000Z","updated_at":"2025-03-22T16:07:33.000Z","dependencies_parsed_at":"2023-11-18T02:01:35.188Z","dependency_job_id":"654f5ae0-afd7-4c11-9d7b-2e0159660843","html_url":"https://github.com/mikan3rd/nest-next-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikan3rd%2Fnest-next-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikan3rd%2Fnest-next-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikan3rd%2Fnest-next-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikan3rd%2Fnest-next-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikan3rd","download_url":"https://codeload.github.com/mikan3rd/nest-next-sample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247987285,"owners_count":21028895,"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":["apollo","backend","docker","frontend","graphql","nestjs","nextjs","prisma","react","reactjs","typescript"],"created_at":"2025-04-02T00:37:42.039Z","updated_at":"2025-04-09T06:10:42.421Z","avatar_url":"https://github.com/mikan3rd.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# This project use only TypeScript!!\n\n## Tech stack\n\n- Backend\n  - NestJS\n  - Prisma\n  - GraphQL\n- Frontend\n  - Next.js / React\n  - GraphQL Code Generator\n  - Apollo Client\n  - Semantic UI\n  - emotion\n- Other\n  - yarn workspace\n  - ESLint / Prettier / husky\n  - Docker / Docker Compose\n  - Vercel\n  - GCP (CloudSQL / Cloud Run / Cloud Build)\n\n## Getting Started\n\n### Docker\n\nYou can launch the development environment with one command!\n\n```bash\ndocker-compose up\n```\n\nAfter successful launch, go to the following URL in your browser!\n- Backend: http://localhost:3300/graphql\n- Frontend: http://localhost:3000\n\n:warning: Containers have dependencies, but the next container may start to be started before the preparation is complete.\nIf it fails for that reason, please specify the start-up separately as follows.\n\n```bash\ndocker-compose up mysql\n```\n\nSee `docker-compose.yaml` if you want to know more.\n\n### Local\n\n1. Prepare MySQL and create a database for development.\nThen create file `packages/backend/.env` and fill in the environment variables.\n\n```.env.example\nDATABASE_URL=\"mysql://username:password@localhost:3306/nest_next_sample\"\n```\n\n\n2. Do a database migration.\n\n```bash\ncd packages/backend\nyarn install\nyarn migrate:deploy\n```\n\n3. Run the startup command for backend.\n\n```bash\nyarn start:dev\n```\n\nAfter successful launch, go to http://localhost:3300/graphql in your browser!\n\n4. Create file `packages/frontend/.env` and fill in the environment variables.\n\n```.env.example\nSERVER_APOLLO_URI=\"http://localhost:3300\"\nPUBLIC_APOLLO_URI=\"http://localhost:3300\"\n```\n\n5. Run the startup command for frontend.\n\n```bash\ncd packages/frontend\nyarn dev\n```\n\nAfter successful launch, go to http://localhost:3000 in your browser!\n\n\n## GraphQL exmaple\n\n```graphql\nmutation {\n  saveTask(task: { title: \"test\", categoryIds: [] }) {\n    id\n    title\n    categories {\n      id\n      name\n      color\n    }\n  }\n}\n```\n\n```graphql\nquery {\n  task(id: 1) {\n    id\n    title\n    taskContents {\n      id\n      checked\n    }\n    categories {\n      id\n      name\n    }\n  }\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikan3rd%2Fnest-next-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikan3rd%2Fnest-next-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikan3rd%2Fnest-next-sample/lists"}