skandla2002 / prismagram

Instargram clone with Express + Prisma + React and React Native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

prismagram

Instargram clone with Express + Prisma + React and React Native

User Stories

  • Create account
  • Request Secret
  • Confirm Secret(Login)
  • Log in
  • Like / Unlike a photo
  • Comment on a photo
  • Search by user
  • Search by location
  • See user profile
  • Follow / Unfollow User
  • See the full photo
  • Edit my profile
  • Upload a photo
  • edit the photo (Delete)
  • See the feed

prisma

Basic Reads

// Retrieve all users const allUsers: User[] = await prisma.users()

// Retrieve a single user by email const bob: User = await prisma .users({ email: "bob@prisma.is" })

// Retrieve all comments of a post in a single request const commentsOfPost: Comment[] = await priisma .post({ id: "cjl4..." }) .comments()

Filtering & Sorting

// Fetch all published posts about GraphQL by authors with Prisma-email const posts = await prisma.posts({ where: { published: true, title_constains: "GraphQL" suthor: { email_ends_with: "@prisma.io" } }, orderBy: "createdAt_ASC" })

About

Instargram clone with Express + Prisma + React and React Native


Languages

Language:JavaScript 100.0%