Hackathon 2023 project 🚀 🐝 💅 🔧 💫
- Use node version
v16.0.0
- Install dependencies
npm i
- Add existing api's bearer and/or update graphQL api's in
.meshrc.yaml
- Start Apollo server. Keep it running in the background. The server will be accessible via
http://localhost:4000/
npm run devNew
- (optional) Start GraphQL Mesh server. This is a useful UI to help write out your query.
npm run dev
- Navigate to
client/graphql-mesh-client
dir - 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>
- 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