Skip to content

tndTool/HappyApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About

Topic: TRACKING HUMAN BEHAVIOR BY SMARTPHONE

Builder: Nguyen Duc Toan, Nguyen Duc Trong

Advisor: Ph.D. Phan Thanh Trung

Requirement:

  • Authentication: login, register, forget password.
  • Proactive tracking behavior: take photos, record videos and fill in the behavior.
  • Automated tracking behavior : collect sensor data on the user's phone.
  • View submitted behavior history.
  • Profile management: change name, change password, privacy manage, notification manage,... .

Date: 15/09/2023 - present

Status: Updating


Graduation Thesis

Project

We name this application: Happy App. This thesis investigates human behavior in the context of smartphone usage, acknowledging the potential for tracking and analyzing these behaviors as a valuable resource for research in social activities such as eating, drinking, health tracking, fitness, etc. Recognizing that the understanding of human behavior in this digital realm extends beyond academia, it holds tangible real-world implications. By leveraging the data obtained from smartphone interactions, this research aims to provide insights that can be harnessed to enhance public health, encourage sustainable practices, and stimulate community engagement. In summary, human behavior in smartphone usage represents a multifaceted subject with significant implications for research, offering a means to gain valuable insights into our actions and their broader impact on society.The central concept behind this thesis revolves around the development of a smartphone application designed to collect data on students' eating and drinking behaviors.

Directory Structure

+ Project folder structure: By kind

+ The project is divided into 2 parts: Client uses Android Studio Java, Server uses NodeJS

Table of Contents

  • Installation
  • Usage
  • Technologies Used
  • Contributing
  • License

Installation

To install and run the client and server, follow these steps:

  1. Clone the repository:
  2. https://github.com/tndTool/HappyApp.git
  3. Server folder:
  4. 
    Using Visual Studio Code
    --------------------------
    Open terminal (you can use keyboard shortcut: Ctrl + J)
    --------------------------
    Type on terminal:
    cd ../server
    npm install
    --------------------------
    Fill in the .env file information completely according to the path ..\HappyApp\server\.env
    --------------------------
    Type on terminal:
    npm start
    
  5. Client folder:
  6. 
    Using Android Studio
    -------------------------- 
    Sync Project with Gradle Files (you can use keyboard shortcut: Ctrl + Shift + O)
    --------------------------
    Open the ApiHelper.java file according to the path ..\HappyApp\client\app\src\main\java\com\example\happyapp\api
    Replace the SERVER_URL link in code (Example: 'http://192.168.1.20:5000/api/' with 192.168.1.20 is IPv4 Address)
    --------------------------
    Open the virtual machine and run the application
    

Usage

To use the application, follow these steps:

  1. Register an account to use.
  2. Click the + button to collect behavior with the camera.
  3. After completing the collection of user behavior with the camera, a popup will appear to choose whether to continue collecting behavior by video recording or not.
  4. The home page will display the history.
  5. The profile page to manage individual users.

Technologies Used

The following technologies were used to build this project:

  • Android Studio (Java)
  • NodeJS
  • MongoDB
  • Cloudinary
  • Nodemailer

Contributing

Contributions are welcome! If you'd like to contribute to this project, please fork the repository and create a pull request. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License.