Health Hub is a mobile application focused on health and fitness, where users can post articles and read articles. The app is developed using Flutter for the frontend, GetX for state management, and PHP for the backend.
- User Authentication: Sign up and login functionalities.
- Post Articles: Users can create and post their health and fitness articles.
- Read Articles: Users can browse and read articles posted by others.
- User Profiles: Users can view and edit their profiles.
- Real-time Updates: Articles and profiles are updated in real-time.
- Frontend: Flutter
- State Management: GetX
- Backend: PHP
- Database: MySQL
- API: RESTful APIs for backend communication
- Flutter SDK: Installation Guide
- GetX: GetX Package
- PHP: Installation Guide
- MySQL: Installation Guide
-
Clone the repository:
git clone https://github.com/ismaildrs/health-hup-app cd health-hub-app
-
Install Flutter dependencies:
flutter pub get
-
Set up the backend:
- Make sure you have PHP and MySQL installed.
- Create a database named
health_hub_db
. - Follow instructions in the
PHP_backend
directory to set up your backend.
-
Configure the Flutter app:
- Update the base URL in the
lib/api_connection/api_connection.dart
to point to your local PHP server:static const String path = "You're ip adress";
- Update the base URL in the
-
Run the Flutter app:
flutter run
health-hub-app/
│
├── PHP_backend/
│ ├── api_health_hub/ # PHP backend files
│ ├── health_hub_db/ # SQL
│
├── lib/ # Flutter project files
│ ├── api_connection/
│ ├── pages/
│ ├── users/
│ ├── main.dart # Main entry point
│
├── assets/ # Images
│
├── pubspec.yaml # Flutter dependencies
│
└── README.md # Project readme
- Sign Up/Login: Create an account or log in to access the app.
- Post an Article: Go to the "Post Article" section, write your article, and submit.
- Read Articles: Browse through the list of articles on the home screen.
- Edit Profile: Navigate to your profile to view or edit your information.
Contributions are welcome! Please fork the repository and create a pull request with your changes.
- Fork the repository
- Create a new branch (
git checkout -b feature-branch
) - Commit your changes (
git commit -m 'Add some feature'
) - Push to the branch (
git push origin feature-branch
) - Create a pull request
This project is licensed under the MIT License. See the LICENSE file for more details.