Coder Social home page Coder Social logo

ishitgami / openapi-getx Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.07 MB

Dart/Flutter implementation for generating OpenAPI client SDKs, utilizing the OpenAPI Generator and GetX for state management. It provides type-safe API client libraries and simplifies state handling in Flutter applications.

Kotlin 0.07% Swift 0.97% Objective-C 0.02% Dart 73.38% CMake 10.23% C++ 12.13% C 0.75% HTML 0.97% Ruby 1.48%
clean-architecture dependency-injection flutter flutter-clean-architecture flutter-state-management getx getx-state-management openapi openapi-generator flutter-openapi openapi-dart

openapi-getx's Introduction

Flutter with Getx and OpenAPI

Flutter GetX OpenAPI Project repository! This project represents a fully functional Flutter application built with GetX for efficient state management and integrated with OpenAPI for seamless communication with backend services.

Project Structure

The project follows a well-defined directory structure to keep your code organized and maintainable. Here's an overview of the key directories:

  • Src: The main source code directory.

    • Common: Contains common files such as enum, constants, exceptions, colors, screen sizes, and enums.

    • Data: Responsible for data handling.

      • Datasource: Data sources, such as API clients or databases.
    • Domain: Contains the core business logic.

      • Repository: Interfaces that define how data is accessed in the domain layer.

      • Usecase: Use cases that represent the application's business operations.

    • Presentation: Handles the user interface and interaction.

      • Controller: Getx Controller classes responsible for managing the state of your application.

      • Page: Flutter pages/screens.

      • Widget: Reusable UI components.

    • Utilities: Helper classes and utilities for the application.

  • dependency.dart: Dependency injection setup using Getx.

  • Main.dart: The entry point of the Flutter application.

  • openapi:The Dart code for OpenAPI integration was generated using openapi-generator. You can find the OpenAPI JSON file here.

Getting Started

  1. Clone this repository to your local machine:

    git clone https://github.com/ishitgami/openapi-getx
    
  2. Navigate to the project directory:

    cd openapi-getx
    
  3. Install dependencies using Flutter's package manager:

     flutter pub get
    
  4. Run Project

     flutter run
    

Note

  • OpenAPI: The app utilizes the PetStore OpenAPI for backend integration. You can find the OpenAPI swagger here.

  • Image Usage: Images displayed in the app are randomly selected to enhance the user experience.

Contact

For any inquiries or assistance, feel free to contact me at [email protected].

openapi-getx's People

Contributors

ishitgami avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.