Skip to content

mohammedgmgn/rent_ready_task

 
 

Repository files navigation

Below there are a few instructions about mandatory commands to be run in order to facilitate the work.

Linting

It's required as a part to pass all linting instructions so in order to check the issues before pushing to the online repo.

flutter analyze

Generate DI classes , retrofit with dio , mock classes

i'm using Injectable to handle dependency injection through the app and generate dependency classes.

i'm using Retrofit to handle APIs calls using Dio and generate dependency classes.

i'm using Mockito to generate Mocks for unit testing

flutter packages pub run build_runner build --delete-conflicting-outputs

Build the docker image

Use docker build the container image

docker build -t rent_ready_web .

If you have some problem during cache, you can clean cache by this

docker build --no-cache -t rent_ready_web .

After Success building image

Run the docker image with localhost 1200 port. You can change to any other port just replace it.

docker run -d -p 1200:80 --name rent_ready rent_ready_web

for L10n Localization

i'm using [flutter_localizations] and Intl to handle arb strings localization.

in order to use Intl you have to use to generate localizations files

flutter pub get

that's why i added [generate: true] in pubspec.yaml to generate the localization files under .dart_tool/flutter_gen you can find application strings files under lib/l10n

to run project unit test and widget test use

flutter test

Project Architecture

Screenshot

Project screenshots

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 94.8%
  • HTML 3.8%
  • Other 1.4%