- Dart
- Flutter
- Firebase
Clone the project
git clone https://github.com/AOSSIE-Org/Monumento.git
Go to the project directory
cd Monumento
Install dependencies
flutter pub get
Create .env
using template .env.template
and add API keys
cat .env.template > .env
Add the following API keys to the .env
file
GOOGLE_SIGNIN_ANDROID_CLIENT_ID
: Obtain this from the Google Cloud Console for Android configuration.GOOGLE_SIGNIN_APPLE_CLIENT_ID
: Obtain this from the Google Cloud Console for iOS configuration.GOOGLE_SIGNIN_WEB_CLIENT_ID
: Obtain this from the Google Cloud Console for web configuration.GEOAPIFY_API_KEY
: Obtain this from the Geoapify website for fetching location.
Refer to the updated guide below for obtaining these API keys:
- Google Cloud Console Guide for Google Sign-In.
- Geoapify API Setup
Follow the official Firebase guide to set it up for this project. This will:
- Add the
google-services.json
file for Android. - Add the
GoogleService-Info.plist
file for iOS and MacOS. - Create the
firebase_options.dart
file in the lib folder.
This script allows you to populate your Firestore database with predefined monument data. It’s a standalone tool that you can run once to seed your database—no need to run or modify any Flutter app.
-
Node.js: Install Node.js from https://nodejs.org. Verify installation: node -v You should see a version number like i.e:
-
Firebase Project with Firestore Enabled:
- Go to Firebase Console.
- Create or select a project.
- Enable Firestore.
- Service Account Key:
- In the Firebase console, go to "Project Settings" → "Service accounts".
- Click "Generate new private key" to download
serviceAccountKey.json
. - Save
serviceAccountKey.json
in app root directory inside scripts folder.
- Install Dependencies:
- Install the Firebase Admin SDK:
npm install firebase-admin
inside scripts folder, execute the script using the following command:
node populate_monuments.js
If everything goes well, you should see:
Starting to populate the monuments collection...
Monuments collection populated successfully.
- Verify in firestore:: Check the Firebase console → Firestore Database → monuments collection. Your data should appear there.
Notes:
- You can rerun this script whenever you need to seed the data.
- To add more monuments, modify the monumentsData array before running the script again.
⭐ Don't forget to star this repository if you find it useful! ⭐
Thank you for considering contributing to this project! Contributions are highly appreciated and welcomed. To ensure a smooth collaboration, Refer to the Contribution Guidelines.
We appreciate your contributions and look forward to working with you to make this project even better!
By following these guidelines, we can maintain a productive and collaborative open-source environment. Thank you for your support!
Distributed under the GNU General Public License. See LICENSE for more information.
If you have any questions, need clarifications, or want to discuss ideas, feel free to reach out through the following channels: