From 00bd551f7db4e1354e58343de1e91906663fb0e0 Mon Sep 17 00:00:00 2001 From: Muhammed sinan <148682358+sinanptm@users.noreply.github.com> Date: Fri, 1 Nov 2024 22:34:47 +0530 Subject: [PATCH] Update README.md --- README.md | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 34f7746e..ce1b2a84 100644 --- a/README.md +++ b/README.md @@ -269,22 +269,34 @@ GEMINI_API_KEY=your-gemini-api-key # 💡 Tip: Always change default credentials and use strong, unique passwords +# 1️⃣2️⃣ Starting the Development Server -# 1️⃣2️⃣ Start the Development Server - -# Step 1: Return to the root directory +# Option A: Starting from root directory (Recommended) +# This will automatically start both client and server cd .. +npm run dev + +# Option B: Starting servers separately +# If you need to run servers independently, follow these steps: -# Step 2: Start the development server for both client and server +# Step 1: Start the server +cd server npm run dev -# This will launch the client on localhost:3000 and the backend on localhost:8000. +# Step 2: Open a new terminal and start the client +cd client +npm run dev -# Step 3: Start the Stripe webhook listener in a separate terminal +# Step 3: If running servers separately, open a new terminal for Stripe webhook +# Only required when running servers independently stripe listen --forward-to localhost:8000/webhook -# This will listen for Stripe events and forward them to your backend webhook endpoint. - -You can Start with creating new user or start testing with the dummy mails and passwords that i have provider +# 🚀 Access Points: +# - Client: http://localhost:3000 +# - Server: http://localhost:8000 +# - Admin Dashboard: http://localhost:3000/admin/login +# - Doctor Dashboard: http://localhost:3000/doctor/login +# 💡 Note: When using 'npm run dev' from the root directory, +# you don't need to start Stripe webhook separately as it's handled automatically. ```