/emo-Book

emo-Book flutter project

Primary LanguageDartMIT LicenseMIT

Book suggestion service with User Emotion

Procedure

$ flutter create --org com.kkimj.emobook emo_book_flutter

Project architecture

MVVM

  • Model
  • View
  • View model

Packages

$ flutter pub add pedantic
$ flutter pub add get
$ flutter pub add freezed

$ flutter pub add responsive_builder

$ echo include: package:pedantic/analysis_options.yaml > analysis_options.yaml

Build flutter project, chrome

# Build for freezed
$ flutter pub run build_runner build

$ flutter run -d chrome --web-renderer html
# or
$ flutter run -d web-server --web-port 8080

Test .dart /test

$ flutter test --machine test/widget_test.dart
# or just
$ flutter test

Release Build, chrome

$ flutter run -d chrome --release --web-renderer html

or 

$ flutter build web --web-renderer html --release


# check /build/web/

Firebase hosting

$ firebase init

# Set /build/web for deploy directory to hosting

$ firebase deploy --only hosting
# or just
$ firebase deploy

Google Book API

https://pub.dev/packages/googleapis

https://developers.google.com/books

$ curl -X GET "https://dapi.kakao.com/v3/search/book?sort=accuracy&page=1&size=10&target=isbn&query={isbn}" \
	-H "Authorization: KakaoAK {REST_API_KEY}"

Book serach API

https://pub.dev/packages/books_finder

TrobleShotting

Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15

// make sure
ext.kotlin_version = '1.4.32'


// from 
// ext.kotlin_version = '1.3.50'

// ref.
// https://stackoverflow.com/questions/67699823/module-was-compiled-with-an-incompatible-version-of-kotlin-the-binary-version-o