Code Monkey home page Code Monkey logo

scorelab / go-social Goto Github PK

View Code? Open in Web Editor NEW
61.0 23.0 93.0 3.16 MB

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 kind 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.

License: Apache License 2.0

JavaScript 89.76% Java 5.62% Objective-C 1.74% Ruby 1.81% TypeScript 0.20% Objective-C++ 0.86%

go-social's Introduction

Go-social

Codacy Badge Build Status License Gitter

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.

Setup the 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.

Configure Go-social

  • 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

Configure the config.example.js file (IMPORTANT)

Open the project in any text editor you use. Open the config.example.js file in the config 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.*
  1. Find the file name AndroidManifest.xml which is located in android/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"**/>
    
  2. Find the file name as strings.xml located in android/app/src/main/res/values. Place your Facebook app id in there.

    Ex: 2349388348405699

So now you are ready to run Go-social.

Run Go-social

  • Run the app

    npx react-native run-android

    Then enable the remote Js debugging.

go-social's People

Contributors

abhikul10 avatar ajaman190 avatar angeryrohan avatar charithccmc avatar codacy-badger avatar danushka96 avatar depfu[bot] avatar dinithminura avatar fazinhan avatar gayashanbc avatar hadhijawahir avatar kanha-13 avatar lahirutech avatar nickhub4017 avatar ravindusachintha avatar shehand avatar thelukaszns avatar thenishantgiri avatar usmailaabdoul avatar vivonk avatar wathsara avatar wdevon99 avatar yash621 avatar yash8202 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

go-social's Issues

No ESLint Support

Expected Behavior

There should be a ".eslintignore" & ".eslintrc.json" File Available for code that doesn't adhere to certain style guidelines.

Current Behavior

There is no ".eslintignore" & ".eslintrc.json" Files Present

Possible Solution

All the commands that are required To Setup ESLint are present Here

Follow-up

Update the README.md accordingly.

Upgrade dependencies, remove deprecated and obsolete ones

I tried running the app, but it refuses to run because of outdated code.

WARNING: The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.0.
Android SDK Build Tools 27.0.3 will be used.

...

WARNING: The option 'android.enableAapt2' is deprecated and should not be used anymore.
Use 'android.enableAapt2=true' to remove this warning.
It will be removed at the end of 2018.
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation'.
It will be removed at the end of 2018
WARNING: The specified Android SDK Build Tools version (26.0.3) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.0.
Android SDK Build Tools 27.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '26.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

Also, some errors, might be because of the above.

/home/siddh/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/9e1a40ce71f20429f2bd5cf40fb4840c/res/values-v24/values-v24.xml:3:5-157: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

/home/siddh/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/9e1a40ce71f20429f2bd5cf40fb4840c/res/values-v24/values-v24.xml:4:5-135: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.
    
/home/siddh/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/9e1a40ce71f20429f2bd5cf40fb4840c/res/values-v26/values-v26.xml:13:5-16:13: AAPT: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.

See full output of terminal

Activate Github Pages

Use Github Pages for the Project so that it is easy for the Contributors to see the issues and to work on it. Also they can provide Github Pages link along with the Pull request

Fix README.md file

The README.md should contain more text.
No Wiki for project so new user can't understand how to use the app.
Error npm install.

Improvements and Issues

=>The repository should follow the git flow workflow
=>The Graphical user interface of the app could be improved as it isn't that great
=>The content of the readme files is not that much detailed, it should be more instructive
=>The UI/UX of the app should is a thing you can work on
=>Certain tests are failing due to npm error (I guess tests cannot be found)
=>It's very hard to handle this without the proper commands as their is no requirements files too

[ GCI - 2018 ] ISSUE IN README

It would be really helpful if the README has a proper briefing on the setup guide and the requirements needed to run the program.

This would help all the people who are new to this field and don't have much experience to install the program as well as learn about installing programs like these.

Fix Chain of Errors during installation, README

  • Installation procedure is explained very minimally in the README.md.
    • Does not handle dependency management automatically-
      • Running sudo react-native run-android gave the following issue about :app:processDebugResources-
        ProcessError
      • Running ./gradlew clean after cd android was supposed to solve the issue but gave the following error instead-
        gradlewError
    • These errors should be handled automatically by the program and manual input should not be required.
  • There is no wiki for the project, hence the main motive and how to use the app is unclear to new users. Hence a wiki should be made and updated or the README.md file should be updated to include more information like troubleshooting and How to use.

Using Jest for tests

Go-social has jest as a dependency, but is not using it for unit testing. Seen as Facebook, use jests for testing their react-native apps, this project should too.

Getting started guide: https://jestjs.io/docs/en/tutorial-react-native

Furthermore, if tests were to be added, instructions would have to be added to README.md on how to run them.

Missing dependancies

When doing npm install, it is missing a lot of dependancies.

gs2

And when I audit fix them, it still doesn't work.

gs3

App does not build

Expected Behavior

The app should install and run successfully on the physical android device on running the following command
react-native run-android

Current Behavior

After following all the setup instructions from the readme file and also configuring the config.js file , when I try to run the command react-native run-android, I get the a build error
I do have a device connected with USB debugging enabled.

Failure Logs

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':react-native-gesture-handler:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 3s
81 actionable tasks: 3 executed, 78 up-to-date
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html

Command failed: ./gradlew installDebug

Error: Command failed: ./gradlew installDebug
at checkExecSyncError (child_process.js:603:11)
at Object.execFileSync (child_process.js:621:15)
at runOnAllDevices (/home/harsh/Go-social/node_modules/react-native/local-cli/runAndroid/runAndroid.js:299:19)
at buildAndRun (/home/harsh/Go-social/node_modules/react-native/local-cli/runAndroid/runAndroid.js:135:12)
at /home/harsh/Go-social/node_modules/react-native/local-cli/runAndroid/runAndroid.js:65:12
at processTicksAndRejections (internal/process/task_queues.js:93:5)

Important files missing

Some important files are missing here..,
They are,
code_of_conduct.md
CONTRIBUTORS.md
issue_template.md
pull_request_template.md

please add them

Issues on README.md & npm test

gosocial

There are some issues on Go-social. Firstly, in README.md should add more information about command "react-native run-android". I think this link is helpful for running this project. (https://facebook.github.io/react-native/docs/running-on-device)
Secondly, I see ERR! when I run npm test and I received this output
674 files checked. testMatch: **/__tests__/**/*.js?(x),**/?(*.)(spec|test).js?(x) - 1 match testPathIgnorePatterns: \\node_modules\\ - 36 matches Pattern: - 0 matches npm ERR! Test failed. See above for more details.

Need more test cases

Prerequisites

Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • I am running the latest version
  • I checked to make sure that this issue has not already been filed

Expected Behavior

when run the command npm test, test cases should be executed

Current Behavior

No such specified test cases are implemented

Chating Screen And Function should impliment

Prerequisites

Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • I am running the latest version
  • I checked to make sure that this issue has not already been filed

Expected Behavior

After press the Message in the chat Screen the app should Navigate to a messaging Screen and also it should be able to send and the receive the messages.

Current Behavior

Nothing is implemented on this function

Failure Information (for bugs)

Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. First Creates the components for the messages send by the current user and the mesage receives by the users
  2. Then implements the connection with Firebase

Context

Failure Logs

Fix readme file

The grammar of the readme file is wrong- it should be:
What I changed is in brackets...

(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.

NOT

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 kind 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.

Enhancement in google map

Prerequisites

  • I am running the latest version
  • I checked to make sure that this issue has not already been filed

Expected Behavior

Improvement in Google map in Go-social,

  • Need current location tracking.
  • Need find the place by typing the location name.
  • Need find place by tapping on the map ( for multiple points ).
  • Need to mark a surface on the map by using react native google map polygon.

Current Behavior

Current location tracking and find place by typing the place name is already with Go-social.

Fix app spelling

I setup the app, and noticed there was some spelling mistakes in the login.

  1. Fogot login
  2. Pasword

g1

g2

I also suggest adding detail to the readme file.

there is a issue in react-native-map-directions

Prerequisites

  • I am running the latest version
  • I checked to make sure that this issue has not already been filed

Expected Behavior

Give the path to the destination from my current location

Current Behavior

Destination is shown, but path is not

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. react-native run-android (to run the application on android)
  2. navigate to maps and enter a destination
  3. you get it...

A lot of improvement needed in README.md

This project's main page and Wiki looks very empty. Even though there are steps of how to setup Go-social mentioned in README.md file, there is no descriptions of the dependencies which need to be pulled hence leaving a lot of users confused and proceeding without knowledge of the programs.

This can be a downgrade for all the new students and users trying to test and contribute this Go-social. I recommend adding certain parts of short descriptions on the README.md file like a summary so users can get a idea of what it is without diving deep in. Although a fair part of portion is explained, it isn't enough. A short description and 4 steps without explanation is quite lacking the interest catch. There can be long and brief breakdown descriptions added to the Wiki page for this project to be organized.

Resources you can add in README.md and Wiki:

  • Explanations for all the dependencies needed for installation for better insight
  • Lengthier descriptions for Go-social and all the units used for programming, on Wiki
  • About page for crediting the contributors and revealing of how the idea came to be

undefined is not an object (evaluating 'component.name')

I tried to build the app using the latest react-native and node.js (latest npm as well) versions. The app build fine but it gives me this error.

Screenshot_1582278908

Here are my environment info.

73587541-4e4aa080-44e3-11ea-982b-6e66ee7fbc63

Can I know the exact npm / node versions that this app is working fine? That will be really helpful to make this app to work in latest versions. ๐Ÿ˜Š

[GCI2018] Tests Failing

I used the steps mentioned in README and tried running tests, but they were failing,

palash@ash:~/Go-social$ npm test
> [email protected] test /app/Go-social
> jest
No tests found
In /app/Go-social
  36 files checked.
  testMatch: **/__tests__/**/*.js?(x),**/?(*.)(spec|test).js?(x) - 0 matches
  testPathIgnorePatterns: /node_modules/ - 36 matches
Pattern:  - 0 matches
npm ERR! Test failed.  See above for more details.

Seems like tests can not be found.

Possible Fix :
Add Test Units , they are the best way prove that a program works

Profile page need to be updated

Prerequisites

Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • I am running the latest version
  • I checked to make sure that this issue has not already been filed

Expected Behavior

Adding personal information and save them

Current Behavior

Just a cover and a profile image

Failure Information (for bugs)

Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Connect with firebase
  2. Update user information
  3. fetch them on load

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Failure Logs

Please include any relevant log snippets or files here.

Enhancement of the Application

Expected Behavior

A section to add new Post.

Current Behavior

Currently there is a no place to do that in the application.

Lots of Errors

I used to run this project but it shows many errors and the readme.md must be Updated. Here are the screenshots respectively

  1. npm install fail
    c1
    c2
    2.The Readme.md doesn't say about the android sdk setup

Unreadable font color

On the Messages section of the app, we are using white font on a bright screen which makes the text hard to read. We should change the font colour to something darker (but not really black)
Screenshot of the problem:
Messages
(Suggestions and Last Message(s) are hard to read)

UI Issue

In all the Pages landscape orientation has a problems.

Issue in Readme.md

I think if we need a powerful effect on the customers then we should must move toward perfection.
The readme.md file is containing a very minor issue but even its minor it might affect the customer.
The heading - setup the project, is in small letter, so please fix it.
image

Not sensing react native

I installed react native, the newest version. And I installed android SDK, but still, the react native is not sensing.

gs1

Also, please fix the requirements file, and detail the readme.md file more so that a user is able to know what he/she is doing.

Installation

More explanation should be provided in order to set this up. For example links to react-native should be implemented to show where to download it and how to set it up on any system (windows, mac, linux, etc.) Further, the grammar in the document is almost unreadable and would suggest putting it through some service such as grammarly.com. Having a better standpoint grammatically, vastly improves the likelihood of someone using any product/service in general.

Update needs for the README

Prerequisites

Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • I am running the latest version
  • I checked to make sure that this issue has not already been filed

Expected Behavior

Guide how to config the firebase database and Authentication process.

Issues

  1. Readme.md should be more instructive
  2. Errors in npm install itself
  3. There is no wiki for the project, hence the main motive and how to use the app is unclear to new users.
  4. There should be kind of development workflow to easily understand how code works

Need a dragging marker for map view

Prerequisites

  • I am running the latest version
  • I checked to make sure that this issue has not already been filed

Expected Behavior

There should be a marker as a dragging marker in the map component

Current Behavior

There is no any marker for dragging events.

Vague Manifest.xml

In the manifest.xml, in the android folder, there should be more clear information about the program. For instance, along with the name of the package, the version of the android build should be present. Furthermore, the xml version should also be present. The frontend name also seems to be missing. This information is crucial to understand this app through android's main parser.

Don't build

Command "react-native run-android" failed

Out of terminal:

Scanning folders for symlinks in /home/live/Go-social/node_modules (17ms)
JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug)...
WARNING: The option 'android.enableAapt2' is deprecated and should not be used anymore.
Use 'android.enableAapt2=true' to remove this warning.
It will be removed at the end of 2018.

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':app'.

SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 0s
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html

Signup / Login && Auth Screen text-readability

Login and Signup screens could use same component with just different logics - to ensure signup / login function - confirm password input & logic
This would remove redundant designing

Text readabilty is very less on Auth screen for options --- log in / signup

Build fail

first I installed node js then I installed the Go social project but when I run npm install many errors showed in my screen.
Their are lot of errors in this project even In npm running.
image
React native is not properly defined and it doesn't say about the sdk setup in The Readme.md
image

Issue in README

It would be really helpful if the README has a proper briefing on the setup guide and the requirements needed to run the program.

This would help all the people who are new to this field and don't have much experience to install the program as well as learn about installing programs like these.

Installation Guide Improvements

It would be really helpful if the file has a proper briefing on the setup guide and the requirements needed to run the program. This would help all the people who are new to the field and don't have much experience to install the program as well as learn about installing programs like these.

Issues and Improvements

  • There is no setup guide no requirements.txt file.
    Fix this by adding it to the README .

  • The description of the README file is not that helpful to work with the project in the future.

The Readme.md should be Updated

I used to Run this project but at last it said that "Build Failed" The main problem was I didn't setup my Android SDK in Environmental variable's. I didnt know that I should setup my Android SDK in Environmental variable's Because the Readme.md File has not said About the Android SDK under prerequisites.
issue

Npm failing

When I ran npm test, it failed. I followed the instructions on readme file but it did not work.

gs4

It seemed like there were no tests.

React-Native Port and Code Improvements.

  1. As Go-social is hosting a secondary Web Server the port can be changed to 8080 in order to get Linux user to listen to that port.
    port
  2. In the build.gradle, Android Binaries are not completely fetched by the GUI of python and React Native.
    This can be improved by the use of uploadpack.allowTipSHA1InWant,
    uploadpack.allowReachableSHA1InWant or uploadpack.allowAnySHA1InWant if remote has enabled 40-hex.
  3. Also, another environment should be there to run the Batch file like JAVA_ENVIRONMENT VARIABLE for Cassandra.
  4. In conversationBanner.js, at line 26, props.count can be 0 as the port fetching the data is not likely to get it completely. So there should be props.count >= 0 instead of only equal to 0.
  5. FAQ's tab can be there in the application, so that user can have a view before using the application on the system.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.