-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature | Thoughts #251
Feature | Thoughts #251
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
change the BACKEND_URL in config.ts |
frontend/src/config.ts
Outdated
// export const BACKEND_URL = 'https://backend.aadesh-kulkarni08.workers.dev'; | ||
export const BACKEND_URL = 'http://localhost:39013'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The BACKEND_URL should be pointing to workers.dev, not localhost. Please rollback changes to this file.
frontend/src/components/Appbar.tsx
Outdated
<Link to="/thoughts"> | ||
<button | ||
type="button" | ||
className="focus:outline-none hover:bg-sub rounded-3xl focus:ring-4 focus:ring-gray-100 font-medium flex items-center gap-2 text-sm px-3 md:px-5 py-2.5" | ||
> | ||
<WriteIcon /> thought | ||
</button> | ||
</Link> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix indentation
"content" TEXT NOT NULL, | ||
"publishedDate" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
"published" BOOLEAN NOT NULL DEFAULT false, | ||
"authorId" TEXT NOT NULL, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
author User @relation(fields: [authorId], references: [id], onDelete: Cascade)
authorId String
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aadeshkulkarni what should I change here?
@@ -0,0 +1,13 @@ | |||
-- CreateTable | |||
CREATE TABLE "Thought" ( | |||
"id" TEXT NOT NULL, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id String @id @default(uuid())
frontend/src/App.tsx
Outdated
@@ -30,6 +31,8 @@ function App() { | |||
<Route path="/signin" element={<Signin />} /> | |||
<Route path="/blogs" element={<Blogs />} /> | |||
<Route path="/blog/:id" element={<Blog />} /> | |||
<Route path="/thoughts" element={<Thought />} /> | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove extra line
Introducing Thoughts
Description
At the moment, users can write blogs. Blogs are long form content. User can write a thought. Thoughts are short form.
Resolves #249
Linked Issues
#249
Type of Change
Changes
Screenshots/Recordings
Checklist before requesting a review
Additional Notes