janim2 / RentersParadise

0 stars 0 forks source link

Restructure app file system #18

Closed king-kloy closed 3 years ago

king-kloy commented 3 years ago

This PR addresses #17 with the fact that we don't have a well structured app file system. So I did spend some time thinking about the best way to structure this project. As we do know that the entry point of this project is the lib/ directory, I've structure the files with that directory in order to make a little sense. Here is how the lib/ folder is structured:

lib/
  src/
    constants/
    core/
        bloc/
        models/
        services/
     enums/
     views/
        components/
        screens/
  main.dart

constants/ contains all constant variables declarations bloc/ consist of the business logic components models/ consist of data models services/ consist the injectable services for this project enums/ has the global enumerators views/ consist of various pages or screens with their respective components main.dart is still the entry point. :100:

Also, I could notice that most of the file names and what it contains do not follow the effective Dart style which is the best practices of using the Dart programming language. So, I did apply this practice to our codebase.

I do encourage y'all @lateofrederick, @ekyeremeh7, @norbertkross, @janim2 to accept this changes and henceforth do work it. Thanks :)