dyne / zenpub

Reflow federated economic network
GNU Affero General Public License v3.0
13 stars 3 forks source link

How to connect with the zenpub-client #35

Closed viktorsmari closed 4 years ago

viktorsmari commented 4 years ago

Hi!

Directly after cloning and doing the following:

  1. make
  2. make dev-setup
  3. make dev

localhost:4000 does nothing but we can visit localhost:4004 which redirects to localhost:3000

http://localhost:4004/api/graphql <-- This gives us the Playground. Should this maybe be in the README? Maybe I missed it..

Then we start the zenpub-client which starts by default on localhost:4000 and when we try to sign up or sign in, the Network Headers give us errors:

Status Code: 404 Not Found Request URL: http://localhost:4000/api/graphql

Am I missing some configuration?

Edit If nothing is changed on the zenpub backend and it starts on 4004, then this is needed to start the zenpub-frontend correctly:

REACT_APP_GRAPHQL_ENDPOINT='http://localhost:4004/api/graphql' yarn start

Currently it's not possible to file an issue on https://github.com/dyne/zenpub-client

ivanminutillo commented 4 years ago

Hi @viktorsmari

Thanks for pointing this out, we're improving our documentation as we progress... Btw, this issue happens when you run the client and the server on the same machine, to solve this, you can of course precede the yarn start command as you wrote, or edit the variable REACT_APP_GRAPHQL_ENDPOINT directly in .env.

Currently it's not possible to file an issue on https://github.com/dyne/zenpub-client

Just opened the issues section :)

viktorsmari commented 4 years ago

Perfect!

I think it makes sense documenting that the default dev port is 4004. I will move other things to the client issue tracker or submit a PR!

And btw, the links under 'Documentation index' in the README.md are all broken.

ivanminutillo commented 4 years ago

I'll close this one as we're working on the zenpub-client to fix this issue and improve the documentation! cheers