Skip to content

A prototype of Flutter app that fetches data from NYTimes API.

Notifications You must be signed in to change notification settings

robert-ngo/NYTimes-books

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

New York Times books

alt text

A sample Flutter project, to demontrate fetching data from New York Times Books API. The sample application is used to experimenting:

  • the use of fetching, parsing in background isolate using the compute().
  • accessing New York Times Books API.
  • basic Flutter layout
  • StateLessWidget vs StateFulWidget
  • launch URL using url_launcher

Register your developer account to access the NYTimes Books API

In this tutorial, we use the Books API https://developer.nytimes.com/docs/books-product/1/overview

  • Register your developer account, create a new app for testing, and get generate an API Key
  • Copy file .env.project into .env.
  • Replace [your-api-key] in .env with the API key above.

To run project

Assuming you already have flutter installed, if not, please install it by following instructions at https://flutter.dev/docs/get-started/install.

To run the project:

  • run flutter run to spin up the app on simulator

alt text

About

A prototype of Flutter app that fetches data from NYTimes API.

Resources

Stars

Watchers

Forks

Packages

No packages published