Repository URL to install this package:
|
Version:
2.0.21 ▾
|
| dist |
| README.md |
| package.json |
🚀 GraphQL server
(prerequesite - you have node & yarn & xcode/make - mac || make - windows installed)
# 1. Navigate to the folder # 2. Run yarn install # 3. Start server using yarn run start (runs on http://localhost:4000) and open in GraphQL Playground

make dev starts GraphQL server on http://localhost:4000make mock_dev same as make dev, but with mocksmake build builds the project (for use in deployment)make build_prod builds the production version of the project (does not include index.js)make tests run the unit tests (runs 1x)make tdd run test-driven-development mode (it will watch the tests for changes and re-run them)make build_schema builds the schema (important to run this, until it's done automatically)make build_fragments generates fragments for all modelsmake build_types generates ts types for all modelsLOG_LEVEL_STREAM_PROXY=debug for logging proxy requestsIS_STANDALONE_GRAPHQL=boolean for running the app on its ownLOG_REQUEST_PARAMS=true log all request paramsLOG_REQUEST_RESPONSE=true log all responsesLOG_REQUEST_ERROR=true log all errors in requestsAPI_PORT=4000 port to run the app on, if it's standalone (also compat with skreact)API_URL=http://localhost:4000 the absolute url to run the server requests withCORS=http://1,http://2 cross-origin urls to accept
| File name | Description |
|---|---|
└── src (directory) |
Contains the source files for the GraphQL server |
├── index.js |
The entry point for the GraphQL server |
graphql-yoga which is based on Apollo Server & Expresshttp://localhost:4000/api/productlist/plainteesmen?campaignId=2691&offset=0&limit=100&locale=en_US&storeid=atlanta
ENV_NAME=value for mac)start.js/playground)/graphiql)