Repository URL to install this package:
|
Version:
6.0.2 ▾
|
| dist |
| CHANGELOG.md |
| README.md |
| package.json |
STOREFRONT_APP_SERVICE_HOST=FAKED node dist/index.js
node dist/index.js
docker kill $(docker ps -q) && docker rm $(docker ps -a -q) && docker rmi $(docker images -q) m2 kill killall node # recursive optional git clone --recursive -b zzz-combined-docker-image https://jameswiens@bitbucket.org/skava-admin/mono-applications.git cd mono-applications # cd docker # docker-compose -f docker-compose.dev.yml up -d
docker build --rm -t skava-graphql:v5.0.8 .
docker tag skava-graphql:v5.0.8 react-dtr.skavaone.com:444/skava/graphql:v5.0.8 docker push react-dtr.skavaone.com:444/skava/graphql:v5.0.8
update the yaml files wiith new versions
kubectl delete -f storefront-app-deployment.yaml
kubectl create -f storefront-app-deployment.yaml
docker build --rm -t skava-graphql:v5.0.8 .
docker tag skava-graphql:v5.0.8 react-dtr.skavaone.com:444/skava/graphql:v5.0.8
docker push react-dtr.skavaone.com:444/skava/graphql:v5.0.8
make BUILD_LOCAL_DOCKER
docker build --rm -t storefront:v7.2.0 dist
docker tag storefront:v7.2.0 react-dtr.skavaone.com:444/skava/storefront:v7.2.0
docker push react-dtr.skavaone.com:444/skava/storefront:v7.2.0
docker run -p 3000:3000 storefront:v7.2.0
docker run -d -p 3000:3000 storefront:v7.2.0
🚀 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)