Code Monkey home page Code Monkey logo

Comments (14)

niceropez avatar niceropez commented on August 19, 2024 4

It worked for me. Just create an Oauth credential at https://console.developers.google.com and add whitelist http://localhost:3000, then copy the name of the credential in src/components/SignWith.js, also remember to set up your account in cloudinary and change the data in server/app.js

from medium-clone-on-node.

BobAleena avatar BobAleena commented on August 19, 2024 2

To solve this problem, I only had to do the following:

updated the assigned value of 'clientId' in SignInWith.js with a Google OAuth 2.0 token
You will need to go to https://console.developers.google.com/ to create an OAuth 2.0 token and it will look like 'YOUR_TOKEN.apps. googleusercontent.com

from medium-clone-on-node.

doions avatar doions commented on August 19, 2024 1

Signin with Google isnt working for me as well. please help

from medium-clone-on-node.

niceropez avatar niceropez commented on August 19, 2024 1

Guys I don't understand what they mean exactly. I can't find the url of the deploy in heroku, it is only referred to in the post of medium: https://my-medium-clone.herokuapp.com/ which is not, this url is a project made with ruby that served as inspiration for this project. If I'm wrong with this statement let me know.

I did the following:
1- I cloned the repository,
2- I installed all the dependencies
3- I changed "clientId" in SingIn.js (I created an OAuth credential in developers.google) and added http://localhost:3000 in Authorized JavaScript Sources // client side
4- I changed "cloudinary.config" (created an account in cloudinary and copied the required data) in app.js // server side

And I can run the repo locally without problems creating post and uploading images.

PS: This project is not finished, so there are some errors.

from medium-clone-on-node.

tassawarr avatar tassawarr commented on August 19, 2024

it's depolyed on heroku. So, i just want to bring admin in life.

from medium-clone-on-node.

tassawarr avatar tassawarr commented on August 19, 2024

i posted it as well. But couldn't get a specific reply.

from medium-clone-on-node.

doions avatar doions commented on August 19, 2024

@tassawarr could you solve it? What's your specific problem. I could not find where to edit in the signin.js but I changed the Oauth.js. but still, it's not working. when I click on the button, its non-responsive.

from medium-clone-on-node.

tassawarr avatar tassawarr commented on August 19, 2024

actually, it will take time. Because the problem is unspecified as well. So, I have to check it further. I'm trying to connect the original author of this repo.

from medium-clone-on-node.

doions avatar doions commented on August 19, 2024

i am trying firebase module, let me try using it. it might work. ill update if it works

from medium-clone-on-node.

tassawarr avatar tassawarr commented on August 19, 2024

Okay, i don't know enough about firebase and not enough experienced as well. So, thanks for your kindness.

from medium-clone-on-node.

doions avatar doions commented on August 19, 2024

https://codeburst.io/build-simple-medium-com-on-node-js-and-react-js-a278c5192f47

follow this

from medium-clone-on-node.

lhferrh avatar lhferrh commented on August 19, 2024

@BiosTEC How did you add http://localhost:3000 to your whitelist. I cannot add localhost to it. if I try to add localhost I get this error "Invalid domain: must be a top private domain" and If I try localhost:3000 I get this other error "Invalid domain: cannot contain port."

I hope any of you guys did with a solution to test the app locally.

from medium-clone-on-node.

bagussatriaio avatar bagussatriaio commented on August 19, 2024

Guys I don't understand what they mean exactly. I can't find the url of the deploy in heroku, it is only referred to in the post of medium: https://my-medium-clone.herokuapp.com/ which is not, this url is a project made with ruby that served as inspiration for this project. If I'm wrong with this statement let me know.

I did the following:
1- I cloned the repository,
2- I installed all the dependencies
3- I changed "clientId" in SingIn.js (I created an OAuth credential in developers.google) and added http://localhost:3000 in Authorized JavaScript Sources // client side
4- I changed "cloudinary.config" (created an account in cloudinary and copied the required data) in app.js // server side

And I can run the repo locally without problems creating a post and uploading images.

PS: This project is not finished, so there are some errors.

i do persist like this, but when logging its ask old google client id
image

Solved, dot forget to check dist folder ad change google login id on there

from medium-clone-on-node.

BobAleena avatar BobAleena commented on August 19, 2024

https://codeburst.io/build-simple-medium-com-on-node-js-and-react-js-a278c5192f47

follow this

the codeburst link is broken, but you can find the same article here now: https://medium.com/swlh/clone-medium-on-node-js-and-react-js-731cdfbb6878

from medium-clone-on-node.

Related Issues (14)

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.