Today's community use mobile phones to make their life easier, and community-based mobile applications are famous among them. There are several kinds of community-based applications in use, and most of them relate to a specific domain. But core components have similar features. Addressing this issue and saving development time by introducing a common app template with customizable components for community-based mobile applications is the main purpose of this project.
NOTE: If you have not yet installed react-native, use this link to install and configure react-native. Make sure to use react-native cli rather than using expo cli.
-
Clone the project
git clone https://github.com/scorelab/Go-social.git
-
Change the directory to the project folder
cd Go-social
-
Install the node modules with the following command
npm install
Open the project in any text editor you use. Open the
config.example.js
file in theconfig
folder and follow the following steps.
-
Use this link to create a Firebase project for the Go-social application. It is free for everyone. Please use the web app instead of the Android or iOS app.
-
Update the Sign-in method of Firebase project that you want to use as Enabled
-
Create a Firebase Database and Update the Ruleset of the real-time database to Read/Write Allow.
-
Use this link to generate Google Map Api key for the map view in G-social. This is not necessary. You can use the given api key. But it is not guaranteed that the given key will always work. It is better to have your own key. Enable all maps, routes, places in your key.
-
Now you need a Facebook app id if you want to enable Facebook login for Go-social. Use this link for that and make sure to enable both email/password and Facebook sign-in method in Firebase.
So place your Firebase details and Google map API key in config.example.js file and rename it to config.js.
- To make Google map and Facebook login to work, you have to follow these extra steps.*
-
Find the file name
AndroidManifest.xml
which is located inandroid/app/src/main
path. Place your Google map API key in there.Ex : <meta-data
android:name="com.google.android.geo.API_KEY" android:value=**"AIzaSyDmwJddIPTcALyZtj7p9mFFlkMvpMkati8"**/>
-
Find the file name as
strings.xml
located inandroid/app/src/main/res/values
. Place your Facebook app id in there.Ex: 2349388348405699
So now you are ready to run Go-social.
-
Run the app
npx react-native run-android
Then enable the remote Js debugging.