- Clone the repository
git clone https://github.com/Thanisha23/PayBuddy.git
- Navigate to the project directory and install dependencies for the backend
cd PayBuddy
cd backend
pnpm install
- Create a file named
.env.local
in the root directory of your project. - Add the following lines to the
.env.local
file:
MONGO_URL=your-mongodb-url
JWT_SECRET=your-secret-key
PORT=3000
FRONTEND_URL='http://localhost:5173'
- Start the backend server
pnpm run dev
- In a new terminal, navigate to the frontend directory and install the dependencies
cd ../frontend
pnpm install
- Update the .env file with the backend URL
cp .env.sample .env
VITE_BACKEND_URL=http://localhost:3000/api/v1
- Start the frontend development server
pnpm run dev