Pengembangan Back-end pada Aplikasi Smart Nutrition Berbasis Node.js dan Hapi dengan Integrasi Google Cloud Platform
DOI:
https://doi.org/10.35746/jtim.v7i4.812Keywords:
RESTful API, Google Cloud Platform, Backend, Smart Nutrition App, cloud computingAbstract
Advances in digital technology drive the need for smart and integrated nutrition monitoring systems, but developers often focus only on features without considering architectural design. This research aims to develop and implement a RESTful API on the Google Cloud Platform (GCP) backend for the Smart Nutrition App, which has the ability to support daily fruit consumption tracking powered by machine learning. The methodology used is based on the Software Development Life Cycle (SDLC) model, including requirements analysis, cloud-native system design, modular API development using Node.js and Hapi.js, functional testing in Postman, and stress testing in K6 to 4000 virtual users. The results show that the RESTful API can sustain a load of up to 1000 virtual users with 0% error rate, but performance degrades very sharply above this level, to the point where the error rate is 100% at 4000 users. These findings indicate the need for infrastructure optimization to support the demands of real applications. The result of this research is that the system meets the functional requirements and performs well at small scale but requires infrastructure improvements such as load balancing and auto-scaling for scaled environments. The main contribution of this research is to present a scalable and modular backend framework for Smart Nutrition App as a future reference when developing similar systems.
Downloads
References
Li, A. Yin, H. Y. Choi, V. Chan, M. Allman-Farinelli, and J. Chen, “Evaluating the Quality and Comparative Validity of Manual Food Logging and Artificial Intelligence-Enabled Food Image Recognition in Apps for Nutrition Care,” Nutrients, vol. 16, no. 15, p. 2573, 2024. https://doi.org/10.3390/nu16152573
Stoppa and A. Chiolerio, “Wearable Electronics and Smart Textiles: A Critical Review,” Sensors, vol. 14, no. 7, pp. 11957–11992, 2014.https://doi.org/10.3390/s140711957
Koyama, M. Nishiyama, and K. Watanabe, “Smart Textile Using Hetero-Core Optical Fiber for Heartbeat and Respiration Monitoring,” IEEE Sensors Journal, vol. 18, no. 15, pp. 6175–6180, 2018. https://doi.org/10.1109/JSEN.2018.2847333
v Dalakleidi, M. Papadelli, I. Kapolos, and K. Papadimitriou, “Applying image-based food-recognition systems on dietary assessment: a systematic review,” Advances in Nutrition, vol. 13, no. 6, pp. 2590–2619, 2022. https://doi.org/10.1093/advances/nmac078
Mansouri, S. B. Chaouni, S. J. Andaloussi, and O. Ouchetto, “Deep learning for food image recognition and nutrition analysis towards chronic diseases monitoring: A systematic review,” SN Computer Science, vol. 4, no. 5, p. 513, 2023. https://doi.org/10.1007/s42979-023-01972-1
Costa e Silva, O. Oliveira, and B. Oliveira, “Enhancing Real-Time Analytics: Streaming Data Quality Metrics for Continuous Monitoring,” in Proceedings of the 7th International Conference on Mathematics and Statistics (ICoMS), 2024. https://doi.org/10.1145/3686592.3686609
Lee, J. Kim, and H. Park, “Cloud-based architecture for real-time food intake monitoring and nutritional analysis,” IEEE Access, vol. 11, pp. 10123–10135, 2023. https://ieeexplore.ieee.org/document/10078027/
Hasanuddin, H. Asgar, and B. Hartono, “Rancang Bangun REST API Aplikasi Weshare sebagai Upaya Mempermudah Pelayanan Donasi Kemanusiaan,” JINTEKS (Jurnal Inform. dan Sains), vol. 4, no. 1, pp. 8–14, 2022. https://doi.org/10.51401/jinteks.v4i1.1474
B. Hassan, S. A. Barakat, and Q. I. Sarhan, “Survey on Serverless Computing,” Journal of Cloud Computing: Advances, Systems and Applications, vol. 10, no. 1, p. 39, 2021. https://doi.org/10.1186/s13677-021-00253-7
Pandit and K. Wanjale, “Implementation of Nutrition based REST APIs for Health Management Applications and Testing with Automation,” International Journal of Scientific Research in Science, Engineering and Technology, vol. 7, no. 3, pp. 62–66, 2020. https://doi.org/10.32628/ijsrset207310
Ehsan and et al., “RESTful API Testing Methodologies: Rationale, Challenges, and Solution Directions,” Applied Sciences, vol. 12, no. 9, p. 4369, 2022. https://doi.org/10.3390/app12094369
O. Oyekunle and et al., “A comprehensive review of leveraging cloud-native technologies for scalability and resilience in software development,” International Journal of Science and Research Archive, vol. 11, no. 2, pp. 330–337, 2024. https://doi.org/10.30574/ijsra.2024.11.2.0432
B. Ramu, “Performance impact of microservices architecture,” The Review of Contemporary Scientific and Academic Studies, vol. 3, no. 6, 2023 https://doi.org/10.55454/rcsas.3.06.2023.010
Raj and A. K. Raghav, “Elasticity in the Cloud Related to Database Autonomies and Scalability,” i-manager’s Journal on Cloud Computing, vol. 9, no. 1, pp. 26–31, 2022. [Online]. Available: https://www.researchgate.net/publication/363689885_Elasticity_in_the_cloud_related_to_database_autonomies_and_scalability
Vemasani, S. M. Vuppalapati, S. Modi, and S. Ponnusamy, “Achieving Agility through Auto-Scaling: Strategies for Dynamic Resource Allocation in Cloud Computing,” International Journal for Research in Applied Science and Engineering Technology, vol. 12, no. 4, pp. 3169–3177, 2024. https://doi.org/10.22214/ijraset.2024.60566
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Lalu Kurnia Muhammad Ridho, Jarir Jarir, Akbar Juliansyah

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.




