The community of today used to 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 are relating to a specific domain. But core components have similar features. Address 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.
setup the project
NOTE : If you don't have installed react-native yet 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
install the node modules with following command
configure the config.example.js file (IMPORTANT)
Open the project in any text editor you would use. Open the
config.example.jsfile in the
configfolder. And follow the following steps
Use this link to create a firebase project for the Go-social application. It is free for everyone.
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 realtime 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 you firebase details and google map api key in config.example.js file and rename it to config.js.
In order to work google map and facebook login you have to do some extra works. Follow these steps.
find the file name
AndroidManifest.xmlwhich is located in
android/app/src/mainpath. Place you 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
android/app/src/main/res/values. Place your facebook app id in there.
So now your are ready to run Go-social.
run the app
Then Enable the Remote Js Debugging.