A Flutter crud project based in Getx and Hasura offering basic structures for future projects.
First you need to Sign Up Hasura and create a project for free, after configure your project create a table named produtos from hasura console on postgress database like bellow
Column | Column Type | Nullable | Unique |
---|---|---|---|
id | Integer (auto-increment) | false | true |
nome | Text | false | true* |
valor | Numeric | false | false |
In the unique Column true* is optional |
Important: Setup the id like Primary Key
Primary Key |
---|
id |
Open the root directory of this repository in mac/linux/windows Terminal and type the following commands:
This command will refresh and download all project dependecies
flutter pub get
This command will compile and run the app
flutter run
After executing this command, the application will be running on your emulator.
See the Dart and Flutter Docs.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.