This is a project using Flutter for the front end and Laravel for the back end. This README provides a guide to set up and run the project locally.
Ensure you have the following installed on your system:
- Node.js and npm
- Composer
- PHP
- Flutter
- Android Studio or Xcode (for iOS development)
hello
-
Clone the repository:
git clone https://github.com/LengTech11/VisionCareAI-Detect-Consult
-
Install dependencies:
composer install
-
Copy the
.env.example
file to.env
:cp .env.example .env
-
Generate the application key:
php artisan key:generate
-
Set up your database and update the
.env
file with your database credentials. -
Run the migrations:
php artisan migrate
-
Seed the database (optional):
php artisan db:seed
-
Navigate to the frontend directory:
cd ../frontend
-
Get the Flutter dependencies:
flutter pub get
-
Start the Laravel development server:
php artisan serve
-
The server will be running at
http://127.0.0.1:8000
.
-
Ensure your device or emulator is running.
-
Start the Flutter application:
flutter run
- Backend (Laravel): Configure your environment variables in the
.env
file located in thebackend
directory. - Frontend (Flutter): Configure any necessary constants or API endpoints in the appropriate configuration files.
-
Backend Issues:
- Ensure your
.env
file is configured correctly. - Check if your database service is running.
- Ensure your
-
Frontend Issues:
- Ensure you have a connected device or emulator.
- Check for dependency issues by running
flutter doctor
.
This project is licensed under the MIT License - see the LICENSE file for details.