A Flutter application looks alike IMDb app and using redux to fetch data.
-
First you need to install Flutter and the setup as well.
-
Second you need to install Android Studio and Xcode for the virtual device. Clone this repository
git clone git@github.com:alchristleo/imdb_flutter.git
-
Open the project in your favorite IDE, in this case I'm using VSCode, install Dart plugin, then cmd + shift + p, type Pub: Get Packages.
-
cmd + shift + p, type Flutter: Run Flutter Doctor, this command will help you to check if your flutter application can run on both android and ios platform.
-
Navigate to presentation/lib/@services/imdb/imdb.dart.sample rename it to imdb.dart and change the apiKey "<YOUR_IMDB_API_KEY>" to your own api key. To get your api key please register first in here TMDB API Docs
-
Run:
flutter packages pub run flutter_launcher_icons:main
This command will change the app icons on start, see flutter_launcher_icons
-
Voila, now you can start the application, first navigate inside presentation folder:
cd presentation
To run the application you can press F5.
-
If you want to run this app on iOS, navigate to
presentation/ios
then in terminal type:
pod install
This command will help you generate pods file to bundle the library to xcode emulator. See cocoapods
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.