Code Monkey home page Code Monkey logo

Comments (4)

petrkalos avatar petrkalos commented on June 7, 2024 1

Hi @sandeephs1, playground is only running locally as a helper, the real API is (mainly) backed by a lambda and it doesn't serve it.

If you want your local frontend to access the real API (to speedup development) you can do the following

  • Go to the AWS Console → Cognito → User Pool → App Integration → Choose App Client → Hosted UI
    Add the following in both Sign In and Sign Out URLs http://localhost:3000
  • From your project root run envname=dev python3 deploy/configs/frontend_config.py this will generate the frontend/.env file
  • Open the .env file and replace both REACT_APP_COGNITO_REDIRECT_SIGNIN , REACT_APP_COGNITO_REDIRECT_SIGNOUT values with http://localhost:3000
  • Now start the server cd frontend; yarn start

Using this method will also allow for React code hot swapping (you don’t need to restart the server when making frontend changes).

from dataall.

dlpzx avatar dlpzx commented on June 7, 2024

Hi @sandeephs1 thanks for the question. When using the dockerized local deployment of data.all you can access the GraphQL playground in http://localhost:5000/graphql because the graphql container is using that port. Do you also want to know how to access the real API? I personally have not tried, so I would need to play around a bit (@petrkalos, @SofiaSazonova @noah-paige have you tried?)

Would you also be interested in how to connect a local deployment of the frontend with the real backend API?

from dataall.

sandeephs1 avatar sandeephs1 commented on June 7, 2024

Thanks @dlpzx Yes we want to access (Real API) in our Dev setup (we are able to access in Dockerized local Deployment)

from dataall.

dlpzx avatar dlpzx commented on June 7, 2024

Closing as question is solved. We will re-open it if needed

from dataall.

Related Issues (20)

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.