2.7.0 • Published 29 days ago

@evdy-consumer/cloudcms-api-proxy v2.7.0

Weekly downloads
-
License
ISC
Repository
github
Last release
29 days ago

cloudcms-api-proxy

A proxy to the CloudCMS API, handling caching via Redis and giving us the ability to create custom endpoints that interact with the CloudCMS API

Setup

  • Install redis-server

  • Install lerna globally if you haven't already: npm install -g lerna

  • Copy env-template to .env

  • Populate the variables within .env with the needed values

Important things to be aware of...

Currently we're using graphql-combine-query for combining queries when batching queries to send to CloudCMS. This package is pretty new and doesn't have wide adoption yet, so we should keep tabs on it... I (kzusy) performed an audit before adding and didn't see anything suspect. It only has one dependency, which is graphql: ^15.1.0, and that matches the version that we are using.

Running

  • Start your local redis server (assuming you installed via wsl): sudo service redis-server start

  • Install dependencies: lerna bootstrap

  • To transpile the source, start the service and watch for any changes: npm run watch

NOTE: At the time of writing this there is an occasional issue with the watch script. If you run into that, you can run the build and run scripts. Alternatively, and preferably, you can fix the watch issue :trollface:

Watch additional packages within the lerna repo and restart

  • To trigger a restart of cloudcms-api-proxy when changes are made within other packages within this lerna repo, add it's lib/ or dist/ directory to the "watch" array within nodemon.json. Then run lerna run watch

Make updates

  • Updates should be made within the src directory.
  • Ensure that your changes do not introduce any linting errors or warnings
    • Changes to the linting rules should be discussed with the team
  • Ensure that unit tests are passing
  • Add unit tests for new or uncovered functionality
  • Update unit tests for changes made as needed
2.7.0

29 days ago

2.6.0

1 month ago

2.5.1

2 months ago

2.5.0

2 months ago

2.4.1

8 months ago

2.4.0

10 months ago

2.4.3

7 months ago

2.4.2

8 months ago

2.4.4

6 months ago

2.3.0

11 months ago

2.2.5

1 year ago

2.2.4

1 year ago

2.2.1

1 year ago

2.2.3

1 year ago

2.2.2

1 year ago

1.4.5

2 years ago

1.4.4

2 years ago

2.2.0

1 year ago

2.1.0

2 years ago

2.0.0

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.2.4

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.3

2 years ago

1.2.0

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago