Skip to content

Clean and bloc. It contains most used packages, unit tests

Notifications You must be signed in to change notification settings

umutbariscoskun/ApiCrudAPP

Repository files navigation

api_crud_app

A new Flutter API CRUD PROJECT. ✅

Getting Started

mockAPI used as an api.

Api Schema

Ekran Resmi 2023-09-17 19 46 23

ARCHITECTURE:

  • Clean Architecture

image

You can find more about this architecture in my article.

ENVIRONMENTS

TEST, UAT, PROD

/// run in terminal for example: make run-ios-debug-test

run-ios-debug-test: flutter run --target lib/main.dart --flavor test --dart-define=APP_ENV=test

run-android-debug-dev: flutter run --target lib/main.dart --flavor dev --dart-define=APP_ENV=test

run-debug-uat: flutter run --target lib/main.dart --flavor uat --dart-define=APP_ENV=uat

run-debug-prod: flutter run --target lib/main.dart --flavor prod --dart-define=APP_ENV=prod

RUNNING ENVIRONMENTS FROM TERMINAL

YOU CAN RUN THEM DIRECTLY FROM VISUAL STUDIO CODE LAUNCH SETTINGS

Ekran Resmi 2023-09-17 15 04 20

(EXCEPT ANDROID IN TEST MODE BECAUSE OF TEST KEYWORD, GRADLE WONT ACCEPT IT. FOR RUNNING ANDROID-DEV PLEASE USE MAKE COMMANDS)

make run-ios-debug-test

make run-android-debug-dev

make run-debug-uat

make run-debug-prod

Localization:

You have to change locale& country on ios to change app locale

Unit Testing:

Unit tests created for all of usecases flutter test

PACKAGES

FOR ROUTER:
FOR DEPENDENCY INJECTION:
FOR State Management & Business logic:
FOR NETWORKING:
FOR LOCALIZATION:
FOR UNIT TESTING:

UI

Simulator Screen Shot - iPhone SE (3rd generation) - 2023-09-17 at 14 40 53 Simulator Screen Shot - iPhone SE (3rd generation) - 2023-09-17 at 14 40 47 Simulator Screen Shot - iPhone SE (3rd generation) - 2023-09-17 at 14 40 41 Simulator Screen Shot - iPhone SE (3rd generation) - 2023-09-17 at 14 40 33

ApiCrudAPP