Closed VicColombo closed 2 years ago
Also the steps needed are the following run flutter pub get to get the dependencies. run flutter pub run build_runner build to generate the model class code. run flutter run to run the project. run flutter packages pub run build_runner build --delete-conflicting-outputs if there are some errors for models building.
The other I think can be kept internally
Sorry for the late reply here, one of my cat was sick. The creating models section is for Json_serializable and json_annotation plugins, we are handling the parsing dynamically and these models/plugins help us in doing that. You can say that this step is one of the main part of the process in setting up the app.
@hectoritr, @asimjawad thank you both for your replies! (hope the cat is better :cat2:).
Get started: setting up your IDE
- run
flutter pub get
to get the dependencies.- run
flutter pub run build_runner build
to generate the model class code.- run
flutter run
to run the project.- run
flutter packages pub run build_runner build --delete-conflicting-outputs
if there are some errors for models building.
The first 3 points from the 1st can be added at the top of the README. The reason is that even if someone is not a developer and they want to run it, they can just simply type these commands and do it. In case of a first time built the 4th command is not required because everything will be building from scratch. For the 2nd point yeah, we can add these there for the developers too. Otherwise they would be going through the code to find the issue.
people usually reads the document in full capital like README first 😂
Thanks for all the info @asimjawad & @hectoritr! =)
Hi @hectoritr,
in the original Readme there's this section called Creating models which will now be moved to Contributing > As a developer. This is the fragment I'm referring to:
Create models
flutter pub get
to get the dependencies.flutter pub run build_runner build
to generate the model class code.flutter run
to run the project.flutter packages pub run build_runner build --delete-conflicting-outputs
if there are some errors for models building.flutter build web --release --web-renderer html
for building the project.flutter deploy
for deploying it on the master.firebase deploy --only hosting:dev-ottaaproject
for deploying it on dev.I have two questions about this: