This is a Reddit clone built using Next.js 13, Firebase, Chakra UI and some other cool tools.
Preview deployed on Vercel, check out the current version: https://next-bredit.vercel.app
(Add credits to freeCodeCamp.org and Shadee Merhi here.)
JSON.stringify
that handles circular references and prevents defined getters from throwing errors.<Modal size="xl">
)Create Firebase project for the app. Then, create .env.local
and put the following variables with corresponding values there:
NEXT_PUBLIC_FIREBASE_API_KEY
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN
NEXT_PUBLIC_FIREBASE_PROJECT_ID
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID
NEXT_PUBLIC_FIREBASE_APP_ID
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see the result.
To learn more about Next.js, take a look at the following resources:
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.