├── .babelrc.js ├── .eslintrc.js ├── .gitignore ├── .npmrc ├── .prettierignore ├── .vscode └── settings.json ├── Procfile ├── README.md ├── app ├── auth │ ├── hooks │ │ └── useAuthUser.ts │ ├── index.ts │ ├── mutations │ │ ├── login.ts │ │ ├── logout.ts │ │ └── register.ts │ └── pages │ │ ├── login.tsx │ │ └── register.tsx ├── comments │ └── mutations │ │ └── createComment.ts ├── components │ ├── EmptyList.tsx │ ├── Form.tsx │ ├── FullPageSpinner.tsx │ ├── MDEditor.tsx │ ├── MDXComponents.tsx │ ├── MarkdownPreview.tsx │ └── TopProgressBar.tsx ├── hooks │ └── useIntersectionObserver.ts ├── layouts │ ├── FormLayout.tsx │ └── MainLayout.tsx ├── pages │ ├── 404.tsx │ ├── _app.tsx │ ├── _document.tsx │ └── index.tsx ├── posts │ ├── components │ │ ├── Feed.tsx │ │ └── PostList.tsx │ ├── mutations │ │ ├── createPost.ts │ │ ├── deletePost.ts │ │ └── updatePost.ts │ ├── pages │ │ └── posts │ │ │ ├── [id].tsx │ │ │ ├── [id] │ │ │ └── edit.tsx │ │ │ ├── create.tsx │ │ │ └── tags │ │ │ └── [tagName].tsx │ └── queries │ │ ├── getPost.ts │ │ ├── getPosts.ts │ │ ├── getPostsInfinite.ts │ │ └── getPostsPaginated.ts ├── profile │ ├── mutations │ │ └── updateUser.ts │ └── pages │ │ └── profile │ │ ├── my-posts.tsx │ │ └── settings.tsx ├── styles │ ├── index.ts │ └── theme.ts ├── tags │ └── queries │ │ ├── getTag.ts │ │ └── getTags.ts ├── users │ ├── components │ │ ├── UserForm.tsx │ │ └── UserList.tsx │ ├── mutations │ │ └── followOrUnfollowUser.ts │ ├── pages │ │ └── users │ │ │ └── [userId].tsx │ └── queries │ │ └── getUser.ts └── utils │ ├── allowAuthorizedRoles.ts │ └── formatDate.ts ├── blitz.config.js ├── db ├── index.ts ├── migrations │ ├── 20200903175029 │ │ ├── README.md │ │ ├── schema.prisma │ │ └── steps.json │ ├── 20200913165930 │ │ ├── README.md │ │ ├── schema.prisma │ │ └── steps.json │ └── migrate.lock ├── schema.prisma └── seeds.js ├── integrations └── .keep ├── package.json ├── public ├── favicon.ico └── logo.png ├── screenshots ├── feed.png ├── post.png └── user.png ├── tsconfig.json ├── utils └── .keep ├── vercel.json └── yarn.lock /.babelrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/.babelrc.js -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | save-exact=true 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | .gitkeep 2 | .env* 3 | *.ico 4 | *.lock 5 | db/migrations 6 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /Procfile: -------------------------------------------------------------------------------- 1 | web: npx next start -p $PORT -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/README.md -------------------------------------------------------------------------------- /app/auth/hooks/useAuthUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/auth/hooks/useAuthUser.ts -------------------------------------------------------------------------------- /app/auth/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/auth/index.ts -------------------------------------------------------------------------------- /app/auth/mutations/login.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/auth/mutations/login.ts -------------------------------------------------------------------------------- /app/auth/mutations/logout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/auth/mutations/logout.ts -------------------------------------------------------------------------------- /app/auth/mutations/register.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/auth/mutations/register.ts -------------------------------------------------------------------------------- /app/auth/pages/login.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/auth/pages/login.tsx -------------------------------------------------------------------------------- /app/auth/pages/register.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/auth/pages/register.tsx -------------------------------------------------------------------------------- /app/comments/mutations/createComment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/comments/mutations/createComment.ts -------------------------------------------------------------------------------- /app/components/EmptyList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/components/EmptyList.tsx -------------------------------------------------------------------------------- /app/components/Form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/components/Form.tsx -------------------------------------------------------------------------------- /app/components/FullPageSpinner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/components/FullPageSpinner.tsx -------------------------------------------------------------------------------- /app/components/MDEditor.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/components/MDEditor.tsx -------------------------------------------------------------------------------- /app/components/MDXComponents.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/components/MDXComponents.tsx -------------------------------------------------------------------------------- /app/components/MarkdownPreview.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/components/MarkdownPreview.tsx -------------------------------------------------------------------------------- /app/components/TopProgressBar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/components/TopProgressBar.tsx -------------------------------------------------------------------------------- /app/hooks/useIntersectionObserver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/hooks/useIntersectionObserver.ts -------------------------------------------------------------------------------- /app/layouts/FormLayout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/layouts/FormLayout.tsx -------------------------------------------------------------------------------- /app/layouts/MainLayout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/layouts/MainLayout.tsx -------------------------------------------------------------------------------- /app/pages/404.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/pages/404.tsx -------------------------------------------------------------------------------- /app/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/pages/_app.tsx -------------------------------------------------------------------------------- /app/pages/_document.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/pages/_document.tsx -------------------------------------------------------------------------------- /app/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/pages/index.tsx -------------------------------------------------------------------------------- /app/posts/components/Feed.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/posts/components/Feed.tsx -------------------------------------------------------------------------------- /app/posts/components/PostList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/posts/components/PostList.tsx -------------------------------------------------------------------------------- /app/posts/mutations/createPost.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/posts/mutations/createPost.ts -------------------------------------------------------------------------------- /app/posts/mutations/deletePost.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/posts/mutations/deletePost.ts -------------------------------------------------------------------------------- /app/posts/mutations/updatePost.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/posts/mutations/updatePost.ts -------------------------------------------------------------------------------- /app/posts/pages/posts/[id].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/posts/pages/posts/[id].tsx -------------------------------------------------------------------------------- /app/posts/pages/posts/[id]/edit.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/posts/pages/posts/[id]/edit.tsx -------------------------------------------------------------------------------- /app/posts/pages/posts/create.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/posts/pages/posts/create.tsx -------------------------------------------------------------------------------- /app/posts/pages/posts/tags/[tagName].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/posts/pages/posts/tags/[tagName].tsx -------------------------------------------------------------------------------- /app/posts/queries/getPost.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/posts/queries/getPost.ts -------------------------------------------------------------------------------- /app/posts/queries/getPosts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/posts/queries/getPosts.ts -------------------------------------------------------------------------------- /app/posts/queries/getPostsInfinite.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/posts/queries/getPostsInfinite.ts -------------------------------------------------------------------------------- /app/posts/queries/getPostsPaginated.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/posts/queries/getPostsPaginated.ts -------------------------------------------------------------------------------- /app/profile/mutations/updateUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/profile/mutations/updateUser.ts -------------------------------------------------------------------------------- /app/profile/pages/profile/my-posts.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/profile/pages/profile/my-posts.tsx -------------------------------------------------------------------------------- /app/profile/pages/profile/settings.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/profile/pages/profile/settings.tsx -------------------------------------------------------------------------------- /app/styles/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/styles/index.ts -------------------------------------------------------------------------------- /app/styles/theme.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/styles/theme.ts -------------------------------------------------------------------------------- /app/tags/queries/getTag.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/tags/queries/getTag.ts -------------------------------------------------------------------------------- /app/tags/queries/getTags.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/tags/queries/getTags.ts -------------------------------------------------------------------------------- /app/users/components/UserForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/users/components/UserForm.tsx -------------------------------------------------------------------------------- /app/users/components/UserList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/users/components/UserList.tsx -------------------------------------------------------------------------------- /app/users/mutations/followOrUnfollowUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/users/mutations/followOrUnfollowUser.ts -------------------------------------------------------------------------------- /app/users/pages/users/[userId].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/users/pages/users/[userId].tsx -------------------------------------------------------------------------------- /app/users/queries/getUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/users/queries/getUser.ts -------------------------------------------------------------------------------- /app/utils/allowAuthorizedRoles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/utils/allowAuthorizedRoles.ts -------------------------------------------------------------------------------- /app/utils/formatDate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/app/utils/formatDate.ts -------------------------------------------------------------------------------- /blitz.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/blitz.config.js -------------------------------------------------------------------------------- /db/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/db/index.ts -------------------------------------------------------------------------------- /db/migrations/20200903175029/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/db/migrations/20200903175029/README.md -------------------------------------------------------------------------------- /db/migrations/20200903175029/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/db/migrations/20200903175029/schema.prisma -------------------------------------------------------------------------------- /db/migrations/20200903175029/steps.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/db/migrations/20200903175029/steps.json -------------------------------------------------------------------------------- /db/migrations/20200913165930/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/db/migrations/20200913165930/README.md -------------------------------------------------------------------------------- /db/migrations/20200913165930/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/db/migrations/20200913165930/schema.prisma -------------------------------------------------------------------------------- /db/migrations/20200913165930/steps.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/db/migrations/20200913165930/steps.json -------------------------------------------------------------------------------- /db/migrations/migrate.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/db/migrations/migrate.lock -------------------------------------------------------------------------------- /db/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/db/schema.prisma -------------------------------------------------------------------------------- /db/seeds.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/db/seeds.js -------------------------------------------------------------------------------- /integrations/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/package.json -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/public/logo.png -------------------------------------------------------------------------------- /screenshots/feed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/screenshots/feed.png -------------------------------------------------------------------------------- /screenshots/post.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/screenshots/post.png -------------------------------------------------------------------------------- /screenshots/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/screenshots/user.png -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/tsconfig.json -------------------------------------------------------------------------------- /utils/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vercel.json: -------------------------------------------------------------------------------- 1 | { 2 | "regions": ["dub1"] 3 | } 4 | -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/blitzjs-realworld-app/HEAD/yarn.lock --------------------------------------------------------------------------------