A Proposed Model for Build a Secure Restful API to Connect between Server Side and Mobile Application Using Laravel Framework with Flutter Toolkits

Keywords: Flutter‎, Laravel‎, web development‎, mobile development‎, backend-frontend

Abstract

Any business these days need a mobile application connected with central database, like E-commerce, E-Learning, Restaurant applications …etc., and in order to create a professional application -connected with backend, Restful API is needed, therefore, choose the best languages, tools and frameworks to build a mobile application in the client side, and Database, API and Dashboard in the backend is crucial. this paper proposed a model to create a Cross-platform mobile application using Flutter Framework with some packages like http to connect with API, (flutter_secure_storage) to store a token and (GetX) for state management and MVC Architectural style, beside using Laravel framework with MySQL database to build an Restful API and the dashboard in the backend, and for make a system for Rules and permissions, Spatie package has been used  with Laravel, as well as use Sanctum for Authentication and Authorization system to protect the APIs with JWT, the result is build a full stack application (frontend and Backend)  called (My Services), which is a kind of Ecommerce application for services only in less than one month.

Downloads

Download data is not yet available.

Author Biography

Osama M.A. AL-atraqchi, Department of Computer Science, College of Science, Chian University-Erbil, Kurdistan Region, Iraq

Osama M. Ahmed is an Assistant Lecturer at the Department of Computer Science, Faculty of Science, Cihan University-Erbil, He got a B.Sc. degree in Management Information system-University of Mosul, and M.Sc. degree in Management Information System-University Of Mosul, His research interests are in Artificial Intelligence, Programming and IT

References

M. H. Shukur, L. R. Fliah and A. Mohammed. Challenges smartphone’s big data in health care systems. Cihan University-Erbil Scientific Journal, vol. 2017, no. 1, pp. 120-125, 2017.

Y. A. Jasim, A. J. Awqati, R. A. Hassan and N. I. Lubis. On designing an information system applied for the commercial companies. Accumulated Journal, vol. 2, no. 1, pp. 87-93, 2020.

T. Espinha, A. Zaidman and H. G. Gross. Web API fragility: How robust is your mobile application? In: 2015 2nd ACM International Conference on Mobile Software Engineering and Systems, pp. 12-21, 2015.

C. Li, R. Zhang, J. Huai and H. Sun. A Novel Approach for API Recommendation in Mashup Development. In: Proceedings 2014 IEEE International Conference on Web Services, ICWS 2014, 2014, pp. 289-296.

X. Chen, Z. Ji, Y. Fan and Y. Zhan. Restful API architecture based on laravel framework. Journal of Physics: Conference Series, vol. 910, p. 012016, 2017.

S. Riyadi and T. Cahyono. Information System for Providing Food Services Based on Mobile Application Using Flutter Framework. In: 4th International Conference on Sustainable Innovation 2020–Technology, Engineering and Agriculture (ICoSITEA 2020), 2021.

A. Arcuri. RESTful API Automated Test Case Generation. In: 2017 IEEE International Conference on Software Quality, Reliability and Security (QRS), July 2017, pp. 9-20, 2017.

X. J. Hong, H. S. Yang and Y. H. Kim. Performance analysis of RESTful API and RabbitMQ for microservice web application. In: 2018 International Conference on Information and CommunicationTechnology Convergence (ICTC), October 2018, pp. 257-259, 2018.

N. Hong, M. Kim, M. S. Jun and J. Kang. A study on a JWT-based user authentication and API assessment scheme using IMEI in a smart home environment. Sustainability, vol. 9, no. 7, p. 1099,2017.

JSON. Available from: https://jwt.io/introduction [Last accessed on 2022 Jan 26].

X. He and X. Yang. Authentication and authorization of end user in microservice architecture. Journal of Physics: Conference Series, vol. 910, no. 1, p. 012060, 2017.

E. A. Wicaksono and M. A. I. Pakereng. Implementation of laravel framework in the development of library information system (study case: Smk Pgri 2 salatiga). Jurnal Pilar Nusa Mandiri, vol. 16, no. 2, pp. 261-270, 2020.

Beautiful Native Apps in Record Time Flutter. Available from: https://flutter.dev/?gclid=CjwKCAiAvriMBhAuEiwA8Cs5lenqlpHEJF5am44bnr4RmhTAOphVS-TznpGAgXahIAtisSlqCSjM7xoCpPEQAvD_BwE&gclsrc=aw.ds [Last accessed on 2021 Nov 12].

S. Faust. Using Google’s Flutter Framework for the Development of a Large-Scale Reference Application. Thesis, 2020.

P. Mainkar and S. Giordano. Google Flutter Mobile Development Quick Start Guide: Get up and Running with iOS and Android Mobile app Development. Packt Publishing, Birmingham, United Kingdom, 2019.

E. T. Wahyudi, A. Erwin and C. Lim. Development of API middleware and mobile application for a job marketplace by using RESTful API and mobile development framework. Journal of Applied Information, Communication and Technology, vol. 7, no. 2, pp. 99-105, 2021.

I. M. Sukarsa, I. N. Piarsa and I. G B. Premana Putra. Application of MVP architecture in developing android-based seminar ticket booking applications. Jurnal RESTI (Rekayasa Sistem danTeknologi Informasi), vol. 4, no. 3, pp. 513-520, 2020.

I. O. Suzanti, N. Fitriani, A. Jauhari and A. Khozaimi. REST API implementation on android based monitoring application. Journal of Physics: Conference Series, vol. 1569, no. 2, p. 022088, 2020.

E. E. Thu and T. N. Aung. Developing mobile application framework by using RESTFuL web service with JSON parser. Advances in Intelligent Systems and Computing, vol. 388, pp. 177-184, 2016.

M. A. Hail and S. Fischer. Flexible API for IoT services with named data networking. In: 2016 IEEE International Conference on Emerging Technologies and Innovative Business Practices for the Transformation of Societies (EmergiTech), pp. 176-181, 2016.

Y. A. Jasim, M. O. Alsaaigh, T. M. Flaih and M. G. Saeed. On announcement for university whiteboard using mobile application. CSRID Journal, vol. 12, pp. 64-79, 2020.

F. Andry, L. Wan and D. Nicholson. A Mobile Application Accessing Patients’ Health Records through a Rest API-how Reststyle Architecture can Help Speed up the Development of Mobile Health Care Applications. In: Proceedings of the International Conference on Health Informatics, pp. 27-32, 2011.

Dart Package. Available from: https://pub.dev/packages/http[Last accessed 2022 Jan 30].

Flutter Secure Storage Flutter Package. Available from: https://pub.dev/packages/flutter_secure_storage [Last accessed on 2022 Jan 30].

Published
2022-08-20
How to Cite
1.
AL-atraqchi O. A Proposed Model for Build a Secure Restful API to Connect between Server Side and Mobile Application Using Laravel Framework with Flutter Toolkits. cuesj [Internet]. 20Aug.2022 [cited 1Oct.2022];6(2):28-5. Available from: https://journals.cihanuniversity.edu.iq/index.php/cuesj/article/view/575
Section
Research Article