Skip to content

dhruv-bvpdev/reddit-clone

Repository files navigation

Reddit 2.0

Reddit Clone
Built using Next.js, TailwindCSS, Stepzen, Supabase, PostgreSQL

Home Page Single Post Page Subreddit Page

Features

  1. Create new post
  2. Add comments to post
  3. Up/Down Vote Post
  4. GraphQL API
  5. Next-Auth Integration

Note on Issues

For any bugs or errors in the project reach out to me on dhruv.gursahani@outlook.com

Usage

Install Dependencies

  • cd reddit-clone
  • npm install

Run (localhost:3000)

  • npm run dev

Run Stepzen GraphQL Playground (localhost:5001)

  • cd stepzen
  • stepzen start

NOTE:

Refer stepzen.txt file to create your own stepzen graphql api

ENV Variables

  1. REDDIT_CLIENT_ID
  2. REDDIT_CLIENT_SECRET
  3. NEXTAUTH_URL
  4. NEXTAUTH_SECRET
  5. NEXT_PUBLIC_STEPZEN_KEY