Welcome to PeerLearn – A modern platform designed to help students collaborate, study, and grow together! 🚀
This project is built using Next.js, TypeScript, Tailwind CSS, and NextAuth.js for authentication. Let’s get you set up in a few easy steps! 💻
First, clone the repository to your local machine:
git clone https://github.com/HarshitKumar9030/peerlearn.git
cd peerlearn
Run the following command to install all necessary dependencies:
npm install
# or
yarn install
You’ll need to configure a few environment variables to get the app running. Create a .env.local
file in the root directory and add the following:
MONGODB_URI=your-mongodb-uri-here
GOOGLE_CLIENT_ID=your-google-client-id-here
GOOGLE_CLIENT_SECRET=your-google-client-secret-here
NEXT_PUBLIC_APP_URL=https://localhost:3000
NEXTAUTH_SECRET=your-nextauth-secret-here
Pro Tip: Use
npx auth secret
to generate a strong secret forNEXTAUTH_SECRET
! 🔐
Once everything is set up, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 in your browser to view the app. You should be good to go! 🎉
- Next.js – The React framework for production.
- TypeScript – Static type checking for better developer experience.
- Tailwind CSS – Utility-first CSS framework for styling.
- NextAuth.js – Authentication library for Next.js.
- MongoDB – NoSQL database for storing user data.