A modern health analysis and reporting system built with the MERN stack.
- Node.js (v16 or higher)
- MongoDB
- Git
- Clone the repository
git clone https://github.com/yourusername/HealthSpectrum-1.git
cd HealthSpectrum-1- Install Server Dependencies
cd server
npm install- Install Client Dependencies
cd ../client
npm install- Set up Environment Variables
Server (.env):
PORT=5000
MONGODB_URI=mongodb://localhost:27017/healthspectrum
CORS_ORIGIN=http://localhost:5173Client (.env):
VITE_API_URL=http://localhost:5000/api
VITE_CLERK_PUBLISHABLE_KEY=your_clerk_key- Start Development Servers
Server:
cd server
npm run devClient:
cd client
npm run dev- React with TypeScript
- Redux Toolkit
- Tailwind CSS
- Framer Motion
- Clerk Authentication
- Node.js & Express
- MongoDB with Mongoose
- JWT Authentication
HealthSpectrum-1/
├── client/ # Frontend React application
│ ├── src/
│ │ ├── components/ # Reusable components
│ │ ├── pages/ # Page components
│ │ ├── store/ # Redux store configuration
│ │ └── types/ # TypeScript type definitions
│ └── ...
└── server/ # Backend Node.js application
├── src/
│ ├── controllers/ # Route controllers
│ ├── models/ # Database models
│ ├── routes/ # API routes
│ └── utils/ # Utility functions
└── ...
This project uses Clerk for authentication. Make sure to:
- Set up a Clerk account
- Configure your application
- Add the required environment variables
API endpoints are documented in the server's README file.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License.