This document provides a comprehensive step-by-step walkthrough to clone, configure, compile, and run the Bookify project locally on your machine.
Before starting, ensure you have the following installed and configured on your operating system:
- Flutter SDK (
>=3.10.0 <4.0.0) - Dart SDK (
>=3.10.0 <4.0.0) - Node.js (required for Firebase CLI tooling)
- OpenSSH toolchain
Begin by cloning the repository using git:
git clone [https://github.com/EdoTXp/bookify](https://github.com/EdoTXp/bookify)
cd bookifyBookify integrates with Firebase for core authorization mechanisms.
- Navigate to the Firebase Console.
- Create a new Firebase project.
- Register your respective Android and iOS application packages inside the project configurations.
- Go to the Authentication tab and enable the following Sign-in Providers:
- Google Authentication (for Android)
- Facebook Authentication (for both Android and iOS)
Ensure OpenSSH is installed and running on your system environment. This toolset is required to process and output security signatures and tokens when binding identity hashes with external developer providers.
To bind Facebook authorization tokens into Firebase:
- Access the Facebook Developer Portal.
- Initialize a new Application instance and activate the Facebook Login product for both Android and iOS platforms.
- Reference the official configuration instructions for detailed native setup steps:
- Copy your generated App ID and App Secret tokens from the Facebook dashboard, return to the Firebase Console Authentication dashboard, and input them under the Facebook provider settings.
For Android application integration, you must supply debug and release SHA fingerprints to Firebase.
Execute the following keytool utility command:
keytool -list -v -keystore <path-to-your-debug-keystore> -alias <key-alias> -storepass <keystore-password> -keypass <key-password>💡 Note: Copy the resulting SHA-1 and SHA-256 blocks directly into your Firebase Android Application profile.
For official distribution profiles, reference the standard Android signing documentation pipelines:
⚠️ Notice: This project does not actively bundle configured Apple Sign-In provisioning profiles due to the lack of an active Apple Developer Team ID. If you choose to configure this environment on your custom clone, apply the setup steps through the Apple Sign-In Documentation and add the identifiers to your Firebase dashboard.
-
Globally install the Firebase Command Line Interface using npm:
npm install -g firebase-tools
-
Authenticate your terminal context into your Firebase account:
firebase login
-
Activate the global FlutterFire configuration toolset:
dart pub global activate flutterfire_cli
-
Bind and generate the localized configuration files into the codebase structure:
flutterfire configure
To enable production compilation capabilities on Android platforms, append an explicit credential file named key.properties inside the android/app/ subdirectory containing your keystore parameters:
storePassword=<your-store-password>
keyPassword=<your-key-password>
keyAlias=<your-key-alias>
storeFile=<path-to-your-keystore>
⚠️ Note: The Android build script configuration enforces a hard validation ruleset and will strictly crash the build execution if these keystore properties are missing.
Populate your valid Facebook identity metadata parameters inside android/app/src/main/res/values/facebook_config.xml:
<resources>
<string name="facebook_app_id">*********</string>
<string name="facebook_client_token">***********</string>
<string name="fb_login_protocol_scheme">fb************</string>
</resources>Inject your corresponding configuration markers directly inside your local ios/Runner/Info.plist layout parameters:
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fb(your_app_id)</string> </array>
</dict>
</array>
<key>FacebookAppID</key>
<string>your_app_id</string>
<key>FacebookClientToken</key>
<string>your_client_token</string>If you plan to run or profile the iOS presentation environment utilizing the Impeller graphic rendering framework engine, completely remove or comment out the forcing toggle flag inside the ios/Runner/Info.plist file:
<key>FLTEnableImpeller</key>
<false/>The project uses envied to securely handle and obfuscate local environment keys (such as the Google Books API Key).
-
Create a
.envfile at the root directory of the project:GOOGLE_BOOKS_API_KEY=YOUR_KEY -
Run the
build_runnerenvironment scripts to clean any stale cache and generate the immutable obfuscated Dart configurations:dart run build_runner clean dart run build_runner build --delete-conflicting-outputs
Once all configuration steps and dependencies are fully resolved and your local device/emulator connection is ready, fetch the package configurations and start compilation from the terminal window:
flutter pub get
flutter runFor a deep dive into the operational frameworks and architecture bindings running inside Bookify, feel free to reference the official technology platforms: