BrainTrain - A system to improve language skill for mild cognitive impairment patients.
Hello, my name is Nguyen Quoc Bao - ITITIU19081. This is my theis for International University.
The purpose of this study is providing the overview of technology selections which help Alzheimer’s patients improve language skill and diagnose those who run the risk of MCI throughout data from games. It is the first time games have been designed by Vietnamese, so that they easily approach to the elderly in Vietnam. In addition, patients’ conditions are followed by specialist doctors based on data from the games which will be stored on server and the website for doctors. Specialist doctor can give many types of exercises for each patient, and then send notification to reminder patients.
This project is a starting point for a Flutter application. So, you need to download the flutter SDK firstly at https://docs.flutter.dev/get-started/install (this it all tutorial for mac, window adn linux ).And you should install Android Studio it's better if you run with a virtual machine because it provides you with an environment to create a virtual Android machine to run the application, if you have installed vs code then it's okay you can download the extension flutter and dart in vs code and run code with real android phone. Because, my application have api so it not run on web browser.
After install all requirement, open your terminal run:
flutter doctor
to check it work clearly.
!!!Note recommend using Flutter version 3.19.5 and Dart 3.3.3
- Import the source code by using vsCode or AndroidStudio (IntelliJ).
- Open the file pubspec.yaml and click the "pub get" on right above:
Or you can open the terminal on this project location and run:
flutter pub get
to down all library before run code
-
With run Android virtual device
-
With run Android real physics
-
With run iOS Simulator
- On your macbook open Simulator, and choose iphone model you want.
-
Firstly, run your virtual device or unlock screen your mobile
-
After open the source code and run :
flutter pub get
You can choose the mobile you want to install the application
Note!!!! don't run it with Chorme or Edge because application have api, so run on it the code with errors.
- You can click run button play icon or open terminal run:
flutter run
- Await about some minutes the BrainTrain will be install on your mobile
The same with run code application Brain train but when choose device run code, choose Chrome or Edge to run code.
If you want to run code with local:
- With application:
- When you run code BE and have your ip local BE. (http://localhost:8080)
- Open file api in lib/service
- Disable 2 line code above and open 2 line code below
- With website:
If you want to run and using app and web in server: Open code and run it
- Install Docker
- Go to https://www.docker.com/get-started/ and download the version that suits your operating system (Windows, MacOS, Linux)
- Open file download and install it
- Install JDK ( required jdk minimum 17)
- Go to https://www.oracle.com/java/technologies/downloads/#java17 and download the version that suits your operating system (Windows, MacOS, Linux)
- Choose x64 Installer to download
- Open file download and install it (Remmember configure to environment variables)
- Open terminal "java --version"
*Install Intellij
- Don't open source code BE with VsCode because VsCode not support all feature on Java
- Go to https://www.jetbrains.com/idea/download/?section=windows and download the version that suits your operating system (Windows, MacOS, Linux)
- Open file download and install it
- Open Source Code
- Open folder BrainTrainBE with Intellij
- Await Intellij download and update package
- First open terminal on Intellij and run (Make sure the docker desktop is open):
docker-compose up
- In file BackendApplication in Brain-Train-Backend-thesis-submission\src\main\java\com\braintrain\backend\BackendApplication right click on it and choose "Run BackendApplication"
- Enable it if the notice apear
- Code start api will run at port 8080
- Open Postman and test api:
http://localhost:8080/api/auth/signup