Meditrack is a comprehensive healthcare tracking ecosystem built with the MERN stack (MongoDB, Express, React, Node) and React Native for mobile.
Ensure the following are installed and running smoothly:
- Node.js (v16+ recommended)
- MongoDB (Local instance running via MongoDB Compass or Cloud URI)
- Redis Server (Usually running on port 6379 natively. Required for Password OTP logic.)
The backend acts as the core REST API that serves both web and mobile variations.
- Open a new terminal.
- Navigate into the backend directory:
cd meditrack-backend - Create a
.envfile containing fundamental environment variables:NODE_ENV=development PORT=5000 MONGO_URI=mongodb://127.0.0.1:27017/meditrack JWT_SECRET=your_super_secret_jwt_key EMAIL_USER=your_email@gmail.com EMAIL_PASS=your_email_app_password
- Install exactly dependencies using NPM:
npm install
- Boot up the server:
npm run dev # Or "node server.js"
You should observe console logs confirming Database Connection, Redis connectivity, and the Cron reminder job initializing!
The dashboard interfaces cleanly with the running backend.
- Open a second isolated terminal window.
- Navigate precisely into the frontend workspace:
cd meditrack-frontend - Initialize the NPM packages initially:
npm install
- Start the Vite development hot-reload server:
npm run dev
(Note: I noticed your frontend development server is currently already running! You can view it live in your browser at http://localhost:5173)
If you wish to view and run the mobile ecosystem scaffold:
- Open a third isolated terminal map.
- Target the newly created mobile folder:
cd meditrack-mobile - Guarantee its specific expo dependencies are structured safely:
npm install
- Instantiate the Metro Bundler logic mapping native devices:
npx expo start # Or simply: npm start
You can download the Expo Go application on your iOS/Android phone. Simply scan the QR code that generates identically in your command-line terminal to load the application directly to your actual device, or press a/i to launch an Android/iOS emulator!