Skip to content

mkchahal/redditclone

Repository files navigation

Reddit Clone with NextJS and Supabase

Description

A Reddit clone build in NextJS with database at Supabase. The app is styled with TailwindCSS - I can safely say it is my new fave. This was my first time using useSWR hooks and I was amazed how it works!

The app is deployed at: redditclone-mkchahal.vercel.app. Google login will be required to access the homepage.

Demo

Screen Shot 2022-08-16 at 12 36 32 AM

Tech Stack

React TailwindCSS Next JS Supabase Vercel

Getting Started

Run yarn install to add all the dev dependencies. After that update the supabase URL and Key in the given env.sample file. Remember to set the url in Supabase settings to http://localhost:3000 for local development.

The app could be started by running yarn dev. All the pages could be accessed under pages folder and the backend apis in pages > api folder. API routes can be accessed on say /api/get-comments. This endpoint can be edited in pages/api/get-comments.js.