A beautiful React app to check blood type compatibility among family members.
- Search and select family members by name
- View who you can donate blood to
- View who you can receive blood from
- Smooth animations with Framer Motion
- Modern, responsive UI with Tailwind CSS
npm installnpm run devThe app will be available at http://localhost:5173 (or another port if 5173 is busy).
npm run buildnpm run previewThe app automatically imports family member data from Tipos_de_Sangre.xlsx. To regenerate the data after updating the Excel file:
-
Make sure you have Python 3 and the required packages installed:
python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate pip install pandas openpyxl
-
Run the generation script:
python generate_family_members.py
This will update
src/familyMembers.jswith the latest data from your Excel file.
Alternatively, you can manually edit the familyMembers array in src/familyMembers.js:
export const familyMembers = [
{ name: "Your Name", bloodType: "O+" },
// Add more members here...
];The easiest way to deploy your app is using Vercel (free and takes 2 minutes):
-
Push your code to GitHub:
git init git add . git commit -m "Initial commit" # Create a new repository on GitHub, then: git remote add origin <your-github-repo-url> git branch -M main git push -u origin main
-
Deploy to Vercel:
- Go to vercel.com and sign up with GitHub
- Click "Add New Project" → Import your repository
- Vercel auto-detects Vite settings
- Click "Deploy"
- Your app will be live at
https://your-app-name.vercel.appin ~2 minutes!
-
Automatic updates: Every time you push to GitHub, Vercel automatically redeploys your app.
- Netlify: Similar to Vercel, also free and easy
- GitHub Pages: Free hosting directly from GitHub
- See
DEPLOYMENT.mdfor detailed instructions on all options
- This app is for educational purposes only
- Not intended for real medical decisions
- Blood type compatibility follows standard ABO and Rh factor rules
- Privacy Note: When deployed, all family member data will be public