Welcome to our installation guide for developers. Jump in and contribute!
We recommend that you follow these steps before beginning development work on the Talawa mobile app.
For best results you should setup your own local instances of:
- Talawa-API: The API system that the mobile app uses for accessing data.
- Talawa-admin: The system used by Administrators to manage user information. This is important as you will occasionally need to do administrative functions that cannot be done in the mobile app.
The INSTALLATION.md files in both repositories show you how. The Talawa-API INSTALLATION.md will also show you the Organization URL to use when you first login to Talawa mobile.
You'll need to set up the IDE and mobile device emulator on your local system and have access to a system running the Talawa API, which the mobile needs to access to operate properly.
- Development Environment: You'll need to have the following installed:
- API Environment: This part is very important.
- Make sure Talawa-API is up and running.
- You will need to enter the URL of the API server in the Talawa app when it first starts up. The URL could be active on a system you control or in our test environment. The Talawa-API INSTALLATION.md will provide that information.
- Google APIs (Optional): The app uses Google Maps API for venue selection. You will need to sign up for it if you want to test these features.
- Maps API Setup: Follow these steps:
- Go to Google Developers Console.
- Create a new project that you want to enable Google Maps on.
- Search
credentials
in the search bar and selectCredentials
in APIs & Services. Click onCreate credentials
and selectAPI key
. Copy the key and replace it as said before. - Search
maps sdk for android
and select theGoogle Maps SDK for Android
in Marketplace. You can also searchmaps sdk for ios
and select theGoogle Maps SDK for iOS
in Marketplace for iOS devices. - Click
Enable
.
- Mobile App Setup: Enter your API key in the:
android/app/src/main/AndroidManifest.xml
file for Android.ios/Runner/AppDelegate.swift
file for iOS.- Replace YOUR_KEY_HERE with your API key.
- Remember to remove the key before committing changes and replace again with YOUR_KEY_HERE.
- Maps API Setup: Follow these steps:
We have tried to make the process simple. Here's what you need to do.
- Clone and change into the project.
$ git clone https://github.com/PalisadoesFoundation/talawa.git $ cd talawa
- Install packages.
$ cd talawa_lint $ flutter pub get $ cd .. $ flutter pub get
- Start developing!
The Talawa Mobile app communicates with a Talawa-API server to get all its data. This access is provided via a URL. When you first run the Talawa Mobile App you'll be prompted for the organization URL of a Talawa-API server. The URL to use will vary depending on the way you are using the Talawa Mobile app.
For a list of organization URLs for each scenario, please refer to the Talawa-API INSTALLATION.md file