Doc Care is an online platform that allows users to book appointments with healthcare professionals in remote areas. This web application consists of a front-end built with React and Vite, while the backend is powered by Firebase for data storage and authentication.
- User Authentication: Sign up, login, and manage accounts.
- Appointment Booking: Easily book appointments with doctors.
- Appointment History: View past appointments and their details.
- User Profile: Update and manage your personal details.
- Frontend: React, Vite
- Backend: Firebase (Authentication, Firestore Database)
- Authentication: Firebase Authentication
- Hosting: Firebase Hosting (for deploying the frontend)
git clone https://github.com/abhishekboadgurjar/doc-care.git
cd doc-care
Ensure you have Node.js and npm installed, then run the following command:
npm install
- Create a Firebase project at Firebase Console.
- Set up Authentication (email/password, etc.).
- Set up Firestore Database.
- Obtain your Firebase configuration and add it to the
src/services/firebase.js
file.
import { initializeApp } from 'firebase/app';
import { getAuth } from 'firebase/auth';
import { getFirestore } from 'firebase/firestore';
const firebaseConfig = {
apiKey: 'your-api-key',
authDomain: 'your-auth-domain',
projectId: 'your-project-id',
storageBucket: 'your-storage-bucket',
messagingSenderId: 'your-sender-id',
appId: 'your-app-id',
};
const app = initializeApp(firebaseConfig);
export const auth = getAuth(app);
export const db = getFirestore(app);
npm run dev
Visit http://localhost:3000
in your browser to see the application in action.
If you'd like to deploy your app to Firebase Hosting:
-
Install Firebase CLI globally if not already installed:
npm install -g firebase-tools
-
Login to Firebase:
firebase login
-
Initialize Firebase Hosting:
firebase init
-
Deploy to Firebase Hosting:
firebase deploy
Your app will be live on the Firebase Hosting URL.
We welcome contributions! Feel free to fork the repository and create a pull request for any improvements.
Abhishek Gurjar is a dedicated web developer passionate about creating practical and functional web applications. Check out more of his projects on GitHub.