Follow these steps to set up the project on your local machine.
Clone the repository
Begin by cloning the repository and navigating into the project folder:
git clone https://github.com/notcodesid/learnwebdev.git
cd learnwebdev
npm install
npm run devTo view in your browser:
http://localhost:3000 To configure environment variables, create a .env file in the root directory and add your variables there.
NEXT_PUBLIC_API_URL=https://learnwebdev.vercel.app/
MONGODB_URI=mongodb+srv://<username>:<password>@cluster0.mongodb.net/myDatabase?retryWrites=true&w=majorityMONGODB_URI Your MongoDB connection string. Make sure to replace , , and myDatabase with your actual MongoDB credentials and database name. Ensure your MongoDB cluster is set up, and you have the correct connection string.