Skip to content

Commit 6dc657a

Browse files
committed
update
1 parent 7734aa6 commit 6dc657a

File tree

16 files changed

+105
-152
lines changed

16 files changed

+105
-152
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@geromegrignon
1+

.github/ISSUE_TEMPLATE/BUG_REPORT.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ description: Report a bug in the RealWorld project
33
title: '[Bug]: '
44
labels:
55
- bug
6-
assignees:
7-
- geromegrignon
86
body:
97
- type: dropdown
108
attributes:

.github/ISSUE_TEMPLATE/FEATURE_REQUEST.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: 🚀 Feature request
22
description: Suggest a feature for RealWorld project
33
title: '[Feature Request]:'
4-
assignees:
5-
- geromegrignon
64
body:
75
- type: markdown
86
attributes:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,10 @@
44
<img src="media/stacks_hr.gif" />
55
</p>
66

7-
<a href="https://demo.realworld.how/"><img src="media/conduit_l.png" align="right" width="250px" /></a>
8-
9-
### See how _the exact same_ Medium.com clone (called [Conduit](https://demo.realworld.how)) is built using different [frontends](https://codebase.show/projects/realworld?category=frontend) and [backends](https://codebase.show/projects/realworld?category=backend). Yes, you can mix and match them, because **they all adhere to the same [API spec](https://realworld-docs.netlify.app/specifications/backend/introduction/)** 😮😎
107

118
While most "todo" demos provide an excellent cursory glance at a framework's capabilities, they typically don't convey the knowledge & perspective required to actually build _real_ applications with it.
129

13-
**RealWorld** solves this by allowing you to choose any frontend (React, Angular, & more) and any backend (Node, Django, & more) and see how they power a real-world, beautifully designed full-stack app called [**Conduit**](https://conduit.realworld.how).
10+
**RealWorld** solves this by allowing you to choose any frontend (React, Angular, & more) and any backend (Node, Django, & more).
1411

1512
_Read the [full blog post announcing RealWorld on Medium.](https://medium.com/@ericsimons/introducing-realworld-6016654d36b5)_
1613

api/openapi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ info:
44
description: Conduit API documentation
55
contact:
66
name: RealWorld
7-
url: https://www.realworld.how
7+
url: https://realworld-docs.netlify.app/
88
license:
99
name: MIT License
1010
url: https://opensource.org/licenses/MIT

apps/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"dev": "nitro dev",
66
"prepare": "nitro prepare",
77
"preview": "node .output/server/index.mjs",
8-
"start": "node .output/server/index.mjs",
8+
"start": "node .output/server/index.mjs",
99
"db:seed": "npx prisma db seed"
1010
},
1111
"prisma": {

apps/api/prisma/dev.db

92 KB
Binary file not shown.

apps/api/prisma/migrations/20240816162230_init/migration.sql

Lines changed: 0 additions & 121 deletions
This file was deleted.
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
-- CreateTable
2+
CREATE TABLE "Article" (
3+
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
4+
"slug" TEXT NOT NULL,
5+
"title" TEXT NOT NULL,
6+
"description" TEXT NOT NULL,
7+
"body" TEXT NOT NULL,
8+
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
9+
"updatedAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
10+
"authorId" INTEGER NOT NULL,
11+
CONSTRAINT "Article_authorId_fkey" FOREIGN KEY ("authorId") REFERENCES "User" ("id") ON DELETE CASCADE ON UPDATE CASCADE
12+
);
13+
14+
-- CreateTable
15+
CREATE TABLE "Comment" (
16+
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
17+
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
18+
"updatedAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
19+
"body" TEXT NOT NULL,
20+
"articleId" INTEGER NOT NULL,
21+
"authorId" INTEGER NOT NULL,
22+
CONSTRAINT "Comment_articleId_fkey" FOREIGN KEY ("articleId") REFERENCES "Article" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
23+
CONSTRAINT "Comment_authorId_fkey" FOREIGN KEY ("authorId") REFERENCES "User" ("id") ON DELETE CASCADE ON UPDATE CASCADE
24+
);
25+
26+
-- CreateTable
27+
CREATE TABLE "Tag" (
28+
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
29+
"name" TEXT NOT NULL
30+
);
31+
32+
-- CreateTable
33+
CREATE TABLE "User" (
34+
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
35+
"email" TEXT NOT NULL,
36+
"username" TEXT NOT NULL,
37+
"password" TEXT NOT NULL,
38+
"image" TEXT DEFAULT 'https://api.realworld.io/images/smiley-cyrus.jpeg',
39+
"bio" TEXT,
40+
"demo" BOOLEAN NOT NULL DEFAULT false
41+
);
42+
43+
-- CreateTable
44+
CREATE TABLE "_ArticleToTag" (
45+
"A" INTEGER NOT NULL,
46+
"B" INTEGER NOT NULL,
47+
CONSTRAINT "_ArticleToTag_A_fkey" FOREIGN KEY ("A") REFERENCES "Article" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
48+
CONSTRAINT "_ArticleToTag_B_fkey" FOREIGN KEY ("B") REFERENCES "Tag" ("id") ON DELETE CASCADE ON UPDATE CASCADE
49+
);
50+
51+
-- CreateTable
52+
CREATE TABLE "_UserFavorites" (
53+
"A" INTEGER NOT NULL,
54+
"B" INTEGER NOT NULL,
55+
CONSTRAINT "_UserFavorites_A_fkey" FOREIGN KEY ("A") REFERENCES "Article" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
56+
CONSTRAINT "_UserFavorites_B_fkey" FOREIGN KEY ("B") REFERENCES "User" ("id") ON DELETE CASCADE ON UPDATE CASCADE
57+
);
58+
59+
-- CreateTable
60+
CREATE TABLE "_UserFollows" (
61+
"A" INTEGER NOT NULL,
62+
"B" INTEGER NOT NULL,
63+
CONSTRAINT "_UserFollows_A_fkey" FOREIGN KEY ("A") REFERENCES "User" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
64+
CONSTRAINT "_UserFollows_B_fkey" FOREIGN KEY ("B") REFERENCES "User" ("id") ON DELETE CASCADE ON UPDATE CASCADE
65+
);
66+
67+
-- CreateIndex
68+
CREATE UNIQUE INDEX "Article_slug_key" ON "Article"("slug");
69+
70+
-- CreateIndex
71+
CREATE UNIQUE INDEX "Tag_name_key" ON "Tag"("name");
72+
73+
-- CreateIndex
74+
CREATE UNIQUE INDEX "User_email_key" ON "User"("email");
75+
76+
-- CreateIndex
77+
CREATE UNIQUE INDEX "User_username_key" ON "User"("username");
78+
79+
-- CreateIndex
80+
CREATE UNIQUE INDEX "_ArticleToTag_AB_unique" ON "_ArticleToTag"("A", "B");
81+
82+
-- CreateIndex
83+
CREATE INDEX "_ArticleToTag_B_index" ON "_ArticleToTag"("B");
84+
85+
-- CreateIndex
86+
CREATE UNIQUE INDEX "_UserFavorites_AB_unique" ON "_UserFavorites"("A", "B");
87+
88+
-- CreateIndex
89+
CREATE INDEX "_UserFavorites_B_index" ON "_UserFavorites"("B");
90+
91+
-- CreateIndex
92+
CREATE UNIQUE INDEX "_UserFollows_AB_unique" ON "_UserFollows"("A", "B");
93+
94+
-- CreateIndex
95+
CREATE INDEX "_UserFollows_B_index" ON "_UserFollows"("B");
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Please do not edit this file manually
22
# It should be added in your version-control system (i.e. Git)
3-
provider = "postgresql"
3+
provider = "sqlite"

apps/api/prisma/schema.prisma

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
datasource db {
2-
provider = "postgresql"
3-
url = env("DATABASE_URL")
2+
provider = "sqlite"
3+
url = "file:./dev.db"
44
}
55

66
generator client {

apps/documentation/src/assets/swagger.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "Conduit API documentation",
66
"contact": {
77
"name": "RealWorld",
8-
"url": "https://realworld.how"
8+
"url": "https://realworld-docs.netlify.app/"
99
},
1010
"license": {
1111
"name": "MIT License",

apps/documentation/src/content/docs/implementation-creation/introduction.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ title: Introduction
33
---
44

55
**Conduit** is a social blogging site (i.e. a Medium.com clone). It uses a custom API for all requests, including authentication.
6-
Discover our [live demo](https://demo.realworld.how).
76

87
:::tip
98
Check for [Discussions](https://github.com/gothinkster/realworld/discussions/categories/wip-implementations) about works in progress as we don't list duplicate projects.

apps/documentation/src/content/docs/index.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,4 @@ hero:
1111
- text: Documentation
1212
link: /introduction
1313
icon: right-arrow
14-
- text: Test the demo
15-
link: https://demo.realworld.how
16-
icon: external
17-
variant: minimal
1814
---

apps/documentation/src/content/docs/introduction.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ title: Introduction
88
<img src={'/img/conduit_l.png'} align="right" width="250px" />
99
</a>
1010

11-
> See how _the exact same_ Medium.com clone (called [Conduit](https://demo.realworld.how)) is built using different [frontends](https://codebase.show/projects/realworld?category=frontend) and [backends](https://codebase.show/projects/realworld?category=backend). Yes, you can mix and match them, because **they all adhere to the same [API spec](specs/backend-specs/introduction)** 😮😎
11+
> See how _the exact same_ Medium.com clone is built using different [frontends](https://codebase.show/projects/realworld?category=frontend) and [backends](https://codebase.show/projects/realworld?category=backend). Yes, you can mix and match them, because **they all adhere to the same [API spec](specs/backend-specs/introduction)** 😮😎
1212
1313
While most "todo" demos provide an excellent cursory glance at a framework's capabilities, they typically don't convey the knowledge & perspective required to actually build _real_ applications with it.
1414

15-
**RealWorld** solves this by allowing you to choose any frontend (React, Angular, & more) and any backend (Node, Django, & more) and see how they power a real world, beautifully designed fullstack app called [**Conduit**](https://demo.realworld.how).
15+
**RealWorld** solves this by allowing you to choose any frontend (React, Angular, & more) and any backend (Node, Django, & more).
1616

1717
_Read the [full blog post announcing RealWorld on Medium.](https://medium.com/@ericsimons/introducing-realworld-6016654d36b5)_
1818

0 commit comments

Comments
 (0)