Skip to content

tomassasovsky/comic_book_explorer_flutter

Repository files navigation

Comic Book Explorer

coverage style: very good analysis License: MIT

Generated by the Very Good CLI 🤖

A Flutter App that consumes the restful API of Comic Vine, the largest comic database online.


Getting Started 🚀

First, you're gonna need to generate an API Key for the Comic Vine API. You can get it from here After that, you're gonna want to place it in the launch files. Keep in mind:

This project contains 3 flavors:

  • development
  • staging
  • production

To run the desired flavor either use the launch configuration in VSCode/Android Studio or use the following commands:

# Development
$ flutter run --flavor development --target lib/main_development.dart

# Staging
$ flutter run --flavor staging --target lib/main_staging.dart

# Production
$ flutter run --flavor production --target lib/main_production.dart

*Comic Book Explorer works on iOS, Android, Web, and Windows.


Known issues

  • CORS policies are not implemented in the Comic Vine RestAPI, causing the requests to not work on Flutter Web. A workaround would be to use a so called CORS ANYWHERE PROXY - one implementation of this can be found here.

Running Tests 🧪

To run all unit and widget tests use the following command:

$ flutter test --coverage --test-randomize-ordering-seed random

To view the generated coverage report you can use lcov.

# Generate Coverage Report
$ genhtml coverage/lcov.info -o coverage/

# Open Coverage Report
$ open coverage/index.html

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published