The Health Report Application is a web-based platform that allows users to report injuries and health-related incidents. It consists of two main components: a front-end built with React and a back-end built with Express.js and MongoDB. Users can submit injury reports, view their submitted reports, and sort reports based on various criteria. The application also utilizes Auth0 for user authentication.
Backend Repository here
- Node.js and npm installed.
- MongoDB database setup.
- Auth0 account for authentication.
-
Clone the repository.
-
Install dependencies for the frontend and backend.
-
Set up configuration files:
- Create a
.env
file in thefrontend
andbackend
directories to store environment-specific variables, including MongoDB connection URI and Auth0 credentials.
- Create a
-
Start the frontend and backend servers.
-
Access the application in your browser at
http://localhost:3000
.
- Visit the Reports Page to view existing reports and sort them.
- Access the Report Form Page to submit new health reports with injury details.
- Use the Body Map Component to mark injuries on a body diagram.
- Reports are associated with the authenticated user's email address.
POST /api/report
: Submit a new health report.GET /api/report
: Retrieve user-specific reports with sorting options.
-
Frontend:
- React
- axios
- react-router-dom
- Auth0 React SDK
-
Backend:
- Express.js
- MongoDB
- Auth0 Management API
- axios
Contributions to this project are welcome. Please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your fork.
- Submit a pull request to the main repository.
This project is licensed under the MIT License - see the LICENSE file for details.