This repository is fully configured for GitHub Codespaces with automated setup and development tools.
- Open in Codespace: Click the "Code" button β "Codespaces" β "Create codespace on main"
- Wait for Setup: The devcontainer will automatically:
- Install Python 3.11 and Node.js 18
- Set up virtual environments
- Install all dependencies
- Configure the database with sample data
- Set up VS Code extensions and tasks
Once the Codespace is running:
- Frontend:
http://localhost:5174(React + Vite + TypeScript) - Backend:
http://localhost:8002(FastAPI + SQLAlchemy) - API Documentation:
http://localhost:8002/docs(Swagger UI)
Press Ctrl+Shift+P (or Cmd+Shift+P on Mac) and type "Tasks: Run Task":
- Start Both Servers: Starts both frontend and backend simultaneously
- Start Backend Server: FastAPI server on port 8002
- Start Frontend Server: React/Vite server on port 5174
- Setup Database: Initialize SQLite database with sample data
- Test API: Validate API functionality
reprotech/
βββ .devcontainer/ # Codespace configuration
β βββ devcontainer.json # Container settings
β βββ setup.sh # Automated setup script
βββ .vscode/ # VS Code configuration
β βββ tasks.json # Development tasks
β βββ launch.json # Debug configurations
β βββ settings.json # Editor settings
βββ scripts/ # Helper scripts
β βββ start-dev.sh # Start development environment
β βββ test-env.sh # Run environment tests
β βββ cleanup.sh # Clean up processes and cache
βββ reprotech-backend/ # FastAPI Backend
β βββ app/ # Application code
β β βββ api/ # API routes and endpoints
β β βββ core/ # Core functionality (database, config)
β β βββ models/ # SQLAlchemy models
β β βββ schemas/ # Pydantic schemas
β β βββ services/ # Business logic
β βββ .env # Environment variables
β βββ requirements.txt # Python dependencies
β βββ sample_data.db # SQLite database
βββ reprotech-frontend/ # React Frontend
βββ src/ # Source code
β βββ components/ # Reusable UI components
β βββ modules/ # Feature modules (45+ vet biotech modules)
β βββ hooks/ # Custom React hooks
β βββ utils/ # Utility functions
βββ package.json # Node.js dependencies
βββ vite.config.ts # Vite configuration
The platform includes comprehensive modules for:
Animal Management
- Animal registration and profiles
- Health records and monitoring
- Breeding management
- Performance tracking
Laboratory Services
- Sample collection and tracking
- Laboratory test management
- Results processing and reporting
- Quality control
Genomic Analysis
- DNA sequencing workflows
- Genetic testing and analysis
- Breeding optimization
- Disease susceptibility screening
Biobanking
- Sample storage and inventory
- Chain of custody tracking
- Storage condition monitoring
- Sample retrieval systems
Research & Development
- Experimental design tools
- Data collection and analysis
- Research project management
- Collaboration tools
And many more...
If you prefer manual control:
# Start development environment
./scripts/start-dev.sh
# Test the environment
./scripts/test-env.sh
# Clean up processes
./scripts/cleanup.sh
# Start backend only
cd reprotech-backend
source .venv/bin/activate
uvicorn app.main:app --reload --host 0.0.0.0 --port 8002
# Start frontend only
cd reprotech-frontend
npm run dev- Type: SQLite (development) with PostgreSQL production support
- Sample Data: 2 customers, 4 animals with full veterinary profiles
- Authentication: Removed for development (all endpoints are public)
GET /api/v1/dev/customers/ # List all customers
GET /api/v1/dev/customers/{id} # Get customer by ID
GET /api/v1/dev/customers/{id}/animals # Get customer's animals
GET /api/v1/dev/animals/ # List all animals
GET /api/v1/dev/status # API status check
- VS Code Debugger: Pre-configured for FastAPI debugging
- API Testing: Built-in test scripts validate environment
- Hot Reload: Both frontend and backend support hot reloading
- Authentication has been temporarily removed for development
- All API endpoints are publicly accessible
- Database uses SQLite for simplicity
- Frontend proxy configured to connect to backend automatically
- The environment will auto-start when you open the Codespace
- Visit
http://localhost:5174to see the frontend - Visit
http://localhost:8002/docsto explore the API - Start developing your veterinary biotechnology features!
If servers don't start automatically:
- Open terminal in VS Code
- Run
./scripts/test-env.shto check setup - Run
./scripts/start-dev.shto start servers - Check the VS Code terminal outputs for any errors
For any issues, check the terminal outputs or run the test script to diagnose problems.
Happy Coding! π§¬πΎ - Veterinary Biotechnology Platform
A comprehensive veterinary biotechnology management system for advanced reproduction, genomic intelligence, and farm operations.
- Node.js 18+ (for frontend)
- Python 3.11+ (for backend)
- Git (for version control)
-
Clone the repository
git clone <repository-url> cd reprotech
-
Start the Backend
cd reprotech-backend # Activate virtual environment .venv\Scripts\activate # Windows # Install dependencies pip install -r requirements.txt # Start the server python -m uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
-
Start the Frontend
cd reprotech-frontend # Install dependencies npm install # Start development server npm run dev
-
Access the Application
- Frontend: http://localhost:5173
- Backend API: http://localhost:8000
- API Documentation: http://localhost:8000/docs
- Admin:
admin@reprotech.com/admin123 - Veterinarian:
dr.smith@reprotech.com/vet123 - Lab Technician:
tech@reprotech.com/tech123 - Customer:
user@reprotech.com/user123
- Framework: React 19.1.0 with TypeScript
- Build Tool: Vite 7.0.0
- UI Library: Tailwind CSS + Radix UI
- State Management: React Context + Custom hooks
- Routing: React Router DOM 7.6.3
- Internationalization: i18next (Arabic/English)
- Framework: FastAPI 0.109.0
- Server: Uvicorn 0.27.0
- Authentication: JWT-based with role-based access control
- API Documentation: OpenAPI/Swagger
- Database: PostgreSQL (ready for integration)
- Advanced Reproduction: Session management and embryo tracking
- Fertilization: IVF/ICSI procedures and outcomes
- Genomic Intelligence: SNP analysis and breeding optimization
- Sample Management: Biological sample tracking with QR codes
- Semen Management: Collection, analysis, and storage
- Biobank: LNβ tank management and cryopreservation
- OPU: Ovum Pick-Up procedures
- Breeding: Natural and artificial insemination
- Embryo Transfer: Transfer procedures and pregnancy monitoring
- Phenotype: Physical characteristics tracking
- SNP Analysis: Genetic marker analysis
- BeadChip Mappings: Genomic data management
- Clinical Hub: Centralized clinical workflow management
- Ultrasound: Reproductive ultrasound examinations
- Laboratory: Lab procedures and equipment management
- Internal Medicine: Medical treatments and diagnostics
- Vaccinations: Vaccination schedules and records
- Lab Results: Test results and reporting
- Media Preparation: Culture media management
- Realtime Monitoring: Live system monitoring
- Customers: CRM and customer relationship management
- Finance: Financial tracking and cost analysis
- Human Resources: Employee management and payroll
- Procurement: Supply chain and purchasing
- Inventory: Stock management and tracking
- Tender Management: Bid and contract management
- Data Integration: Cross-module data synchronization
- Settings: System configuration
- Admin: User and system administration
- Analytics Dashboard: Business intelligence
- AI Analytics: Machine learning insights
- Calendar: Scheduling and event management
- Animal Management: Comprehensive animal database
- Farm Management: Farm operations and planning
- Fattening Management: Growth tracking and optimization
- Milking Management: Dairy production tracking
- Farm Analytics: Farm performance metrics
- Farm Compliance: Regulatory compliance tracking
- Integration Hub: Cross-module data integration
- Research: Research project management
- Inventory Analytics: Supply chain optimization
- Predictive Analytics: AI-powered forecasting
- Admin: Full system access and administration
- Veterinarian: Clinical and animal management operations
- Lab Technician: Laboratory and technical procedures
- Customer: Limited access to assigned animals and data
- JWT-based authentication with refresh tokens
- Password hashing with bcrypt
- CORS configuration for secure cross-origin requests
- Input validation and sanitization
- Structured error handling
GET /health- System health checkGET /api/v1/health- API health checkPOST /api/v1/auth/login- User authenticationGET /api/v1/auth/me- Current user informationGET /api/v1/customers- Customer managementGET /api/v1/animals- Animal management
- Reproduction:
/api/v1/reproduction/* - Genomics:
/api/v1/genomics/* - Finance:
/api/v1/finance/* - HR:
/api/v1/hr/* - Laboratory:
/api/v1/lab-results/*
- Responsive Design: Mobile and tablet optimized
- Dark/Light Theme: Theme switching capability
- Internationalization: Arabic and English support
- Toast Notifications: Real-time user feedback
- Loading States: Professional loading indicators
- Error Boundaries: Graceful error handling
- Smart Navigation: Auto-prioritizes current module group
- Role-Based Menu: Dynamic menu based on user role
- Breadcrumb Navigation: Clear navigation path
- Quick Actions: Context-sensitive action buttons
cd reprotech-frontend
npm install
npm run devcd reprotech-backend
# Activate virtual environment
.venv\Scripts\activate
pip install -r requirements.txt
python -m uvicorn app.main:app --reload# Frontend tests
npm run test
# Backend tests
pytest# Build and run with Docker Compose
docker-compose up -d- Build frontend:
npm run build - Start backend:
python -m uvicorn app.main:app --host 0.0.0.0 --port 8000 - Serve frontend build files
- API Documentation: http://localhost:8000/docs
- Development Guide:
REPROTECH_DEVELOPMENT_GUIDE.md - Startup Guide:
REPROTECH_STARTUP_GUIDE.md - Backend Architecture:
BACKEND_STRUCTURE_PLAN.md
- Fork the repository
- Create a feature branch:
git checkout -b feature-name - Make your changes
- Commit your changes:
git commit -m 'Add feature' - Push to the branch:
git push origin feature-name - Submit a pull request
This project is proprietary software developed for veterinary biotechnology applications.
For technical support or questions:
- Email: dev@reprotech.com
- Documentation: Check the documentation files in the repository
- Issues: Create an issue in the repository
- Authentication system
- Basic CRUD operations
- Role-based access control
- Database integration
- Real-time notifications
- Advanced analytics
- Mobile app development
- Machine learning models
- Predictive analytics
- Automated workflows
- Genomic intelligence
Reprotech - Advancing veterinary biotechnology through intelligent software solutions.