Skip to content

Hackathon 2024 project - Built a GraphQL gateway for our rest API and see if we can have better UI experience by having data fetching control in the client.

Notifications You must be signed in to change notification settings

saravpereira/graphql-mesh

Repository files navigation

graphql-mesh

Hackathon 2023 project 🚀 🐝 💅 🔧 💫

Set up project

  1. Use node version v16.0.0
  2. Install dependencies
npm i
  1. Add existing api's bearer and/or update graphQL api's in .meshrc.yaml
  2. Start Apollo server. Keep it running in the background. The server will be accessible via http://localhost:4000/
npm run devNew
  1. (optional) Start GraphQL Mesh server. This is a useful UI to help write out your query.
npm run dev
  1. Navigate to client/graphql-mesh-client dir
  2. Create an .env file in this directory
REACT_APP_BEARER = <api_bearer>
REACT_APP_API_URL = <GET_api_endpoint>
REACT_APP_POST_API_URL = <POST_api_endpoint>
REACT_APP_TEST_ID = <any_id_needed_for_GET_call>
REACT_APP_TEST_ID_POST_CALL = <any_id_needed_for_POST_call>
  1. Start the React app to see the difference in response structure of GraphQL vs. REST API call! View the application at https://local.uniphorecloud.com:9092/
npm start

About

Hackathon 2024 project - Built a GraphQL gateway for our rest API and see if we can have better UI experience by having data fetching control in the client.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages