Flutter app build for mobile and web.
To run the project first of all you have to get the API key from biblia. And follow the following steps.
- Clone the repo and go to the root directory of the repo.
- Export environment variables
API_KEY
andBASE_URL
.
export API_KEY=[API_KEY_FROM_Biblia] BASE_URL=https://api.biblia.com/v1/bible
- Run
dart tool/env.dart
This will create a filelib/.env.dart
with following contents:
final environment = {
"apiKey":"[API_KEY_FROM_Biblia]",
"baseUrl":"https://api.biblia.com/v1/bible"
};
- That is all you need to do, now you can run the app using
flutter run
Note: To build the flutter app for the web you need to be on a dev
channel