Giter Site home page Giter Site logo

red-gold / react-social-network Goto Github PK

View Code? Open in Web Editor NEW
489.0 43.0 486.0 8.84 MB

Simple React Social Network

Home Page: https://medium.com/@qolzam/create-social-network-by-react-js-fe60010a32e6

License: MIT License

JavaScript 0.86% CSS 3.95% HTML 0.51% TypeScript 90.34% SCSS 4.33%
react redux redux-thunk react-router-v4 social-network material-ui responsive typescript create-react-app redux-saga

react-social-network's People

Contributors

codacy-badger avatar dependabot[bot] avatar gitbook-bot avatar gitter-badger avatar huyqluong avatar isaacblinder avatar jcvalerio avatar kamehb-ua avatar kapilip avatar qolzam avatar quantuminformation avatar snyk-bot 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-social-network's Issues

[BUG] Real time notifications not work (as in live example greensocial.herokuapp.com)

Steps

1 Running the app on my local machine
2 Opening two different browsers ,
3 Log in with a differed user account on each browser

Expected Result

If a user votes a post the account in that posted must get a notification in the broswer.

Actual Result

I have to refresh the page to get notification from other folowers

Version

x.y.z

Testcase

Image upload help needed

Steps

I tried uploading a profile image after running the app locally

Expected Result

Image should be uploaded

Actual Result

Image did not upload . Please teach me what I am missing. Does this app need to be connected to a Google cloud storage object for image upload to be implemented or it needs another server-less backend like AWS S3 bucket? Please guide me on how to go about it.

Version

react-social-network image not uploading

x.y.z

Testcase

Over layer on slidebar

When sidebar is open an over layer should be on the main contain so when user click on over layer sidebar will be closed.

Tagline not visible on Profile page

Steps

1 While running a demo of the app on http://greensocial.herokuapp.com
2 I clicked on the edit profile button
3 I added a few lines about me to the Tagline

Expected Result

I expected that my tagline will show up on my profile upon updating it.
Can you educate me on the purpose of the tagline as I thought it was meant to be like the bio feature on Instagram

Actual Result

Nothing showed up on my profile.

Version

x.y.z

Testcase

[Bug]Can not close notifications from popup

Steps

Try to close notification from notification popup

Expected Result

The clicked notification must closed

Actual Result

Nothing happened
getting error in console (Uncaught TypeError: notifyActions.dbDeleteNotify is not a function)

Version

x.y.z

Testcase

[Discussion] Database thoughts and ideas.

One of the difficulties with building apps on top of Document DB's is querying. I'm torn between using AWS dynamoDB and RDS postgres on AWS.

Regarding this app Firebase have a new database called Cloud Firestore, which you might be interested in.

image

One thing that I would like to be able to do in this Social network would be to tag users. This tag would be a many to many relationships. Ie imagine there is an attribute of type skill or endorsements (like in LinkedIn). Would this be easy to do with Firebase? I guess I could have 2 more tables, one to hold the skills and another to map the skills to the various users.

Running karma test getting errors

Steps

Expected Result

✔ 28 tests completed

Actual Result

✔ 26 tests completed
✖ 2 tests failed

ERROR in ./app/components/Master/Master.jsx
ERROR in ./app/tests/reducers/authorizeReducer.test.jsx

Version

x.y.z

Testcase

Reply Comment

Reply to comment with mentioning the person and focusing on comment text field.

Upgrade to react version 16

Facebook released React v16 with new Fiber rendering pipeline allows for a lot of performance improvements. Master branch of react-social-network is React v16 59304fa. We also keep react-social-network with react version 15 in react-v15 branch.

[discussion] AWS and graphql

I have POC app I want to build am considering options. I was wondering why you choose Firebase vs other cloud providers, I myself am tempted to try to modify my own version this to work with AWS over with graphQL. What do you think of that approach?

Better sourcemaps

In chrome debugging isn't so good. I'll look at various sourcemap options.

Black and white source, and hovering over variables produces no output.

image

A user is receiving notifications for actions they carried out - the user ended up receiving my notifications

Steps

  • My team mate, Ayomide and I created accounts to demo the app

  • Ayomide then

1 Followed me
2 Commented on my post
3 Voted on my post

Expected Result

There shouldn't have been any expected result because those are normal interactions by a user.

Actual Result

Ayomide surprisingly received three notifications that read:

1 Ayomide Otunba follow you

2 Ayomide Otunba add comment on your post

3 Ayomide Otunba Vote on your post

What this means is that, Ayomide Otunba received three notifications that were supposed to have been mine. She was not supposed to have received any of the notifications above for actions that she carried out herself. I was supposed to have been the one receiving the notifications.

Version

x.y.z

Testcase

environment.dev.ts (5,13): " should be '

Hello , I am getting below error... Please help

ts-loader: Using [email protected] and C:\Users\handm\Dropbox\MundelProjects\React\GitProjects\react-social-network\tsconfig.json

Could not find implementations for the following rules specified in the configuration:
ter-indent
no-extra-boolean-cast
Try upgrading TSLint and/or ensuring that you have all necessary custom rules installed.
If TSLint was recently upgraded, you may have old rules configured which need to be cleaned up.
Failed to compile.

C:/Users/handm/Dropbox/MundelProjects/React/GitProjects/react-social-network/src/config/environment.dev.ts
(5,13): " should be '

UserAvatar component errors

typeerror

Steps

I was able to successfully create an account after my setting up Firebase config.
My partner tried to create an account and it resulted in a blank screen with the following errors.

Expected Result

useravatar error

Actual Result

Version

x.y.z

Testcase

[Feature request] Change Password screen

It would be great for users to reset their password. I think it would be great to have this feature.

If you want I can do this for you for the client. Maybe you could do the firebase part?

Debounce in resizing

For better performance, resizing window should use debounce to reduce calling times.

[Question] Rational for circles

Given that only google has this concept of circles, I'm wondering if circles is the best approach.

Instead of organising contacts under circles, perhaps it would be better to store a users contacts/followings in a flat structure. If further organisation would be needed later the user could tag the contact via a new table, for example usertags > user > Tag1 > [userID1,userID2]

Mind you this might make it harder to query to find all users under the same tag for all users.

Blank screen upon running web server

Steps

I git cloned the master in order to see the effects of your last commit relating to picture upload
Then proceeded to install and setup app through firebase
I ran web server

Expected Result

I expected to see the create account / login page

Actual Result

I did not see the create account / login page. I only saw a blank page. Please find attached printed screen below

Version

x.y.z

Testcase

react-social-network-bug

[Bug] Get compile error on npm start

react-social-network-next/src/api/FileAPI.ts
(39,5): Type '(this: FileReader, readerEvent: FileReaderEvent) => void' is not assignable to type '((this: FileReader, ev: ProgressEvent) => any) | null'.
Type '(this: FileReader, readerEvent: FileReaderEvent) => void' is not assignable to type '(this: FileReader, ev: ProgressEvent) => any'.
Types of parameters 'readerEvent' and 'ev' are incompatible.
Type 'ProgressEvent' is not assignable to type 'FileReaderEvent'.
Property 'getMessage' is missing in type 'ProgressEvent'.

Firebase picture upload

Steps

I just finished installing and setting up the app through Firebase

I tried posting something

Expected Result

I expected to be able to upload a picture from my computer to my newsfeed and avatar.

Actual Result

I was able to post words to the newsfeed, however I was not able to upload any picture to neither my newsfeed nor my avatar. Please help.

Version

x.y.z

Testcase

Any suggestions on implementing search?

@Qolzam I know you wrote implementing search under your todo list, that said, search is something that I am thinking of implementing at this time and I was wondering if you could direct me on how to go about it. In addition, could you kindly direct me to a tutorial or something I can read to gain a better understanding.

I have looked into AWS Mobile Hub and Appsync. I have been thinking about the possibility of using an AWS serverless architecture, but my inexperience has been impending my efforts. Any help or explanation will be appreciated.

I have no idea how to implement these solutions, but have you seen them? Any thoughts?

https://github.com/toyeebgodo/aws-mobile-appsync-events-starter-react

https://github.com/aws/aws-amplify

https://firebase.google.com/docs/firestore/solutions/search

https://github.com/deltaepsilon/firebase-search

https://github.com/firebase/flashlight

Thank you so much as always.

Notification on Following

Steps

  • Click follow user
  • Add user in a circle

Expected Result

If user1 Add user2 in a circle notification should be appeared only at the first time.

Actual Result

Every time user1 add user2 in a circle, user2 will receive notification. If we add user2 in 3 circles, user2 will receive 3 notifications.

Version

v0.1

The next version

@Qolzam, you mentioned here (#15) that "The next version of this project migrate to typescript with many new awesome stuff, cleaner code, high performance, with AWS and Firebase back-end, easy deploying and CLI to modify project easily," and you also said here (#36) that , ". . . In the new version I have added both reset password and User confirmation #23. I'm trying to make time to release this update."

Given that releasing this projects as open source is big-time charity on your part and your other charitable project contributions (such as this: https://github.com/Qolzam/react-mobile-social ) to the developer community has been nothing less than magnanimous, my humble question is, how's the work on the new release coming along? Any estimation as to when you will be releasing it? Any other information you care to share? Thank you as always for your immense contribution to my life as a developer.

Exception after latest build

on npm start exception thrown:

Failed to compile
/react-social-network-next/src/containers/login/LoginComponent.tsx
(261,88): Argument of type '(theme: any) => { textField: { minWidth: number; marginTop: number; }; contain: { margin: string;...' is not assignable to parameter of type 'Record<"link" | "contain" | "paper" | "textField" | "bottomPaper", CSSProperties> | StyleRulesCal...'.
Type '(theme: any) => { textField: { minWidth: number; marginTop: number; }; contain: { margin: string;...' is not assignable to type 'StyleRulesCallback<"link" | "contain" | "paper" | "textField" | "bottomPaper">'.
Type '{ textField: { minWidth: number; marginTop: number; }; contain: { margin: string; }; paper: { min...' is not assignable to type 'Record<"link" | "contain" | "paper" | "textField" | "bottomPaper", CSSProperties>'.
Types of property 'paper' are incompatible.
Type '{ minHeight: number; maxWidth: number; minWidth: number; textAlign: string; display: string; marg...' is not assignable to type 'CSSProperties'.
Types of property 'textAlign' are incompatible.
Type 'string' is not assignable to type '"left" | "right" | "center" | "start" | "end" | "inherit" | "initial" | "unset" | "justify" | "ma...'.

Notifications popover not working properly on mobile

Steps

I was testing the demo app on my iphone

I decided to view my notifications through my iphone

Expected Result

I expected to
notifications not showing
be able to view all my notifications through the popover

Actual Result

I could only see one notification out of the 8 notifications I had as you can see evidenced in the screenshot attached. The popover isn't showing my other 7 notifications. Please help, thank you as always for your wonderful work.

Version

x.y.z

Testcase

[Upgrade]Moving from redux-thunk to redux-observable/redux-saga

redux-thunk is sweet simple and easy to work. However since project grow it's more difficult to manage side effects and we need more complicated solutions but reliable.

There are two remarkable options redux-observable and redux-saga. Each has it's own advantage but redux-saga seems more clear to manage stuff and it's more handy (my personal idea :) ). In some cases in current project redux-saga solving problems with less complex code. May in other situations redux-observable is better!

I plan to create branch name v0.5 to keep only redux-thunk version of React Social Network. Therefore v0.6 would be React Social Network with redux-saga.

I appreciate any contribution 👍

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.