Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Pocket/v3-proxy-api

Repository files navigation

v3-Proxy-Api

wrapper to connect the v3 endpoints to pocket graph v1

  • endpoints to be covered add, send, and get

Folder structure

  • the infrastructure code is present in .aws
  • the application code is in src
  • .circleci contains circleCI setup

Develop Locally

nvm use
npm ci
docker-compose up

Run tests

npm run test
npm run test-integrations

Using Docker

npm ci
docker-compose up

Not Using Docker

Alternatively if you do not need to use the docker services in your app, like snowplow, you can do:

npm ci
npm run start:dev

To pull latest graphQL types

Our graphQL types are generated from the pocket graph v1 schema. To pull the latest types, run:

npm run codegen

To add new graphQL type

  • Add your graphQL query or mutation to src/graphql/queries/ folder
  • Run npm run codegen
  • This will generate types in src/generated/graphql/types.ts
  • For example, if you add a new query getSavedItems, you will see a new type GetSavedItemsQuery in src/generated/graphql/types.ts
    • Likewise, if you passed any input variables to the query, you will see a new type GetSavedItemsQueryVariables in src/generated/graphql/types.ts

About

REST to graphQL conversion for https://getpocket.com/developer/ send, add and get

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages