metaphysics

 收藏    我在用   0 人在用
 -  null

Artsy's GraphQL API

 GitHub     下载     同步

35    184    55    over 1 year前

Build Status

Metaphysics is a GraphQL-compliant API for the Artsy v1 API. You can try it here against our staging API.

It is built on express, express-graphql, and graphql. With graphiql providing a sandbox to work with.

It is currently used in production all over the place in Artsy.net, and the Artsy iOS App

Meta

Getting Setup

Set up your .env file based on our example .env.test (the variables you must change for development are separated at the bottom).

Install memcached and Yarn if you don't already have them:

brew install memcached
npm install -g yarn

To start up a development server, clone this repo and run:

yarn install
npm run dev

If you are using VS Code, you can read debugging with VS Code to get inline debugging.

Testing

npm test to run the entire suite
npm run watch to spin up the test watcher

Deployment

PRs merged to master are deployed to staging via Semaphore.

We then use the heroku pipelines to deploy to production when happy with staging.

Add the staging instance as a git remote named staging, then promote using the command:

$ heroku pipelines:promote -r staging

 
No Reply at the moment.
需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up