在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):artsy/metaphysics开源软件地址(OpenSource Url):https://github.com/artsy/metaphysics开源编程语言(OpenSource Language):TypeScript 76.6%开源软件介绍(OpenSource Introduction):MetaphysicsMetaphysics is a GraphQL-compliant API that wraps various Artsy APIs. You can try it here against our staging API. It is built on It is currently used in production all over the place in Artsy.net, and the Artsy iOS App Meta
Getting SetupTo get yourself set up with all the project's dependencies: git clone https://github.com/artsy/metaphysics
cd metaphysics
# Run the setup script
./scripts/setup.sh This will pull the environment variables from aws into .env.shared. It will also overwrite .env with the values in .env.example. If you need to override any of these values or add new .env values place them in the .env file. DevelopmentWith your dependencies set up, you can run Metaphysics by running: yarn start Which will start the server on http://localhost:3000 Be sure that memcached is no longer running before starting hokusai by running brew services stop memcached Recommended: You can run the commands inside the terminal in VS Code, then the debugger will be hooked up by default. Setting up your local GraphiQLWe recommend the graphiql.app client for testing queries locally. You will need to set up headers with both:
If you're new to GraphQL, you can checkout Artsy's GraphQL Workshop. For Note that Introspection SetupGetting docs for the schema on MP in your playground of choice (Postman, Insomnia, Altair, etc) is called introspection. Introspection is available by default when developing. Introspection on staging and production are for internal use only, so artsy devs can use it to make development for MP clients (eigen, force, etc) easier, but it is and should not be used by any of the clients or anyone else. In order to set this up in your playground of choice (Postman, Insomnia, Altair, etc), you need to send the following header:
and replace
or the contents of Sample QueriesOnce you have the GraphiQL client running against your local service, you can verify things are working by executing these queries: Get your account information
If any of these queries fail, it's probable that you misconfigured your
Docs
Docker and Kubernetes setupThis is deployed using Hokusai to manage Docker and Kubernetes. To replicate this:
Testing
About ArtsyThis project is the work of engineers at Artsy, the world's leading and largest online art marketplace and platform for discovering art. One of our core Engineering Principles is being Open Source by Default which means we strive to share as many details of our work as possible. You can learn more about this work from our blog and by following @ArtsyOpenSource or explore our public data by checking out our API. If you're interested in a career at Artsy, read through our job postings! |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论