Medwell-Frontend is a modern, user-friendly web application designed to help patients and healthcare providers manage and visualize medical reports and data efficiently.
- Report Management: View and manage medical reports in a clean, intuitive interface.
- Detailed Report View: Access comprehensive information for each report, including test results and summaries.
- PDF Generation: Generate and download professionally formatted PDF reports.
- Interactive UI: Enjoy a responsive and animated user interface built with React.
- Modal View: View full reports in a modal window for a focused reading experience.
- React
- JavaScript
- Tailwind CSS
- Framer Motion (for animations)
- jsPDF (for PDF generation)
- react-modal
- Node.js (v14 or later)
- npm (v6 or later)
-
Clone the repository:
git clone https://github.com/vnrr2023/Medwell-Frontend.git cd Medwell-Frontend -
Install dependencies:
npm install -
Start the development server:
npm run dev -
Open your browser and navigate to
http://localhost:5173to view the application.
-
/public: Static assets- Images: Stethoscope.png, hero.jpg, medwell.png, patient.png, vite.svg
-
/src: Main application code/assets: Additional assets (contents not shown)/components/ui: Reusable UI components (e.g., input.jsx)- General components: About.jsx, Dashboard.jsx, Hero.jsx, Login.jsx, Pricing.jsx, Sidebars.jsx, SignUp.jsx
/pages/Patient: Patient-related components- AddReport.jsx, Appointments.jsx, ExpenseTracker.jsx, HealthCheck.jsx, Profile.jsx, Reports.jsx, ShareWithDoctor.jsx, SharedComponents.jsx
/utils: Utility functions and helpers- cn.js, global.js
- App.css: Main application styles
- App.jsx: Main application component
- index.css: Global styles
- main.jsx: Application entry point
-
Configuration files in the root directory:
- .gitignore: Git ignore file
- README.md: Project documentation
- eslint.config.js: ESLint configuration
- index.html: HTML entry point
- netlify.toml: Netlify deployment configuration
- package.json & package-lock.json: Node.js dependencies and lock file
- postcss.config.js: PostCSS configuration
- tailwind.config.js: Tailwind CSS configuration
- vercel.json: Vercel deployment configuration
- vite.config.js: Vite build tool configuration
-
Viewing Reports: On the main page, you'll see a list of available reports. Click on any report to view its details.
-
Detailed Report View: In the detailed view, you can see the report summary, test results, and other relevant information.
-
Downloading Reports: Click the "Download PDF" button to generate and download a PDF version of the report.
-
Viewing Full Report: Click the "View Full Report" button to open a modal with the complete report content.
- To add new report types or fields, update the
mockReportsarray inReports.jsx. - Modify the PDF generation logic in the
handleDownloadPDFfunction withinReports.jsxto change the PDF layout or content.
This project is licensed under the MIT License - see the LICENSE file for details.
- React for the UI library
- Tailwind CSS for the utility-first CSS framework
- Framer Motion for the animation library
- jsPDF for PDF generation
- react-modal for the modal component
If you encounter any issues or have questions, please file an issue on the GitHub repository at https://github.com/vnrr2023/Medwell-Frontend.