Skip to content
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

Bounty 6$ | Feature | Thought #249

Open
aadeshkulkarni opened this issue Jul 13, 2024 · 1 comment · May be fixed by #258
Open

Bounty 6$ | Feature | Thought #249

aadeshkulkarni opened this issue Jul 13, 2024 · 1 comment · May be fixed by #258
Labels
Bounty Earn while you learn High Priority Important difficult but fulfilling

Comments

@aadeshkulkarni
Copy link
Owner

aadeshkulkarni commented Jul 13, 2024

What ?

  • At the moment, users can write blogs. Blogs are long form content.
  • Introducing Thoughts. User can write a thought. Thoughts are short form. Think of 1 Thought like a Twitter post or Threads post.

How ?

  1. backend/prisma/schema.prisma -
model Thought {
  id            String     @id @default(uuid())
  content       String
  publishedDate DateTime   @default(now())
  published     Boolean    @default(false)
  author        User       @relation(fields: [authorId], references: [id], onDelete: Cascade)
  authorId      String
}

Run prisma migrations to update db with schema

  1. backend/src/routes/thought.ts - thoughtRouter
thoughtRouter.post
thoughtRouter.put
thoughtRouter.get: 1 and all
thoughtRouter.delete

create, update, delete - protected routes
get - public routes

  1. Test all routes on Postman (optional)

  1. frontend/src/pages/Thought.ts -
1. Create Thought button 
2. Show all Thoughts
3. Delete Thought 
4. Update Thought

The frontend should be simple, page/Thought.ts is a temporary placeholder to test the backend setup. We will eventually integrate it into the App.

@aadeshkulkarni aadeshkulkarni added High Priority Bounty Earn while you learn Important difficult but fulfilling labels Jul 13, 2024
@uanik03 uanik03 mentioned this issue Jul 13, 2024
5 tasks
@vlokesh08 vlokesh08 linked a pull request Jul 27, 2024 that will close this issue
4 tasks
@pheonix-coder
Copy link

Bounty available or claimed ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bounty Earn while you learn High Priority Important difficult but fulfilling
Projects
None yet
2 participants