{"id":28398911,"url":"https://github.com/blitz-js/blitz-realworld-example","last_synced_at":"2025-06-28T18:30:44.235Z","repository":{"id":66344109,"uuid":"425089772","full_name":"blitz-js/blitz-realworld-example","owner":"blitz-js","description":null,"archived":false,"fork":false,"pushed_at":"2021-11-22T04:54:58.000Z","size":61,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-10T06:38:39.795Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/blitz-js.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}},"created_at":"2021-11-05T21:33:38.000Z","updated_at":"2023-07-04T15:09:02.000Z","dependencies_parsed_at":"2023-03-10T23:53:09.716Z","dependency_job_id":null,"html_url":"https://github.com/blitz-js/blitz-realworld-example","commit_stats":{"total_commits":17,"total_committers":2,"mean_commits":8.5,"dds":"0.17647058823529416","last_synced_commit":"875ff4c47737ddd690fd2c45f635a26e5ece996c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blitz-js/blitz-realworld-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blitz-js%2Fblitz-realworld-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blitz-js%2Fblitz-realworld-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blitz-js%2Fblitz-realworld-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blitz-js%2Fblitz-realworld-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blitz-js","download_url":"https://codeload.github.com/blitz-js/blitz-realworld-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blitz-js%2Fblitz-realworld-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260899349,"owners_count":23079346,"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":[],"created_at":"2025-06-01T06:38:18.475Z","updated_at":"2025-06-28T18:30:44.229Z","avatar_url":"https://github.com/blitz-js.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blitz RealWorld\n\n[React](https://reactjs.org) + [NextJS](https://nextjs.org) + [Prisma](https://www.prisma.io)  \n\nA FullStack [RealWorld 1.0 Starter App](https://codebase.show/projects/realworld?category=fullstack)\n\n## Set Up Your Computer\n\nYou need Node.js 12 or newer. You can verify this by running `node -v` in your terminal. If you don't have Node or need a newer version, we recommend using a node version manager like [fnm](https://github.com/Schniz/fnm) so you can change node versions for each project.\n\n## Install Blitz\n\nRun `yarn global add blitz`  \nYou'll only need to run the above the first time you install blitz.\n\n## Create a New App\n\nChoose defaults: Typescript, Full, Yarn, React Final Form...\n\n`blitz new myAppName`  \n`cd myAppName`  \n\nInstall Tailwind CSS (Learn more about [Blitz recipes](https://blitzjs.com/docs/using-recipes))\n\n`blitz install tailwind`\n\n`blitz dev`  \n\nView your brand new app at [http://localhost:3000](http://localhost:3000)\n\nIf you delete your app folder, use a new terminal window when running `blitz new myAppName` to avoid conflicts in your virutal .env\n\n\n## Add RealWorld model to your app\n\n**1. Minimum Tables (to be similar to other RealWorld samples) - currently broken**  \n\nTo run only the simple RealWorld 1.0 schema, copy and rename realworld.prisma to db/schema.prisma.\n\u003c!--\n  realworld.prisma originated from [NestJS+Prisma sample](https://github.com/lujakob/nestjs-realworld-example-app/blob/prisma/prisma/schema.prisma), with \"mysql\" changed to \"sqlite\".  \n  Changed to hashedPassword and added name\n--\u003e\n\n**TypeError**  Cannot read property 'findFirst' of undefined  \nUse schema.prisma below until error above resolved.\n\n**2. All the Tables - the following works**\n\nTo create a RealWorld 2.0 site, copy schema.prisma into the db folder. This will provide:\n\n**RealWorld tables:**  \nUser, Article, Content, Tag\n\n**Blitz tables:**  \nSession, Token, Project\n\nAdditional tables to add:\n\n**Blitz survey tables** (from the [Blitz tutorial](https://blitzjs.com/docs/tutorial)): \nQuestion, Choice\n\n**Civic Tech tables** (to be determined)\nOrg, Place, Event, Service, Item\n\n\nGenerate the model by running:\n`blitz generate all project name:string`\nSelect Yes to run Prisma migrate dev to update your database\nEnter a name for the new migration, then restart the server\n\n`Ctrl + c`\n`blitz dev`\n\nThen go to [http://localhost:3000/projects](http://localhost:3000/projects)\n\n## Pages: Article, Editor, Profile, User\nThe \"pages\" folder originates from the [NextJS Realworld demo](https://github.com/cirosantilli/node-express-sequelize-nextjs-realworld-example-app/tree/next/pages). We need a process for moving it into the existing pages folder within [myAppName].\n\n\n\n---\n\n[GitHub](https://github.com/blitz-js/blitz-realworld-example) - [RealWorld 2.0](https://neighborhood.org/planning/#display=planning.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblitz-js%2Fblitz-realworld-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblitz-js%2Fblitz-realworld-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblitz-js%2Fblitz-realworld-example/lists"}