Skip to content

Simple example implementation of a GraphQL API on top of a microservice architecture

License

Notifications You must be signed in to change notification settings

realFlowControl/php-graphql-microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL API on top of Microservices

This is just a port from Node.js/Express to PHP/ReactPHP for Chris Norings article on building a Serverless GraphQL API on top of a Microservice architecture.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

You need to have docker and docker-compose up and running on your local machine.

Installing

git clone https://github.com/flow-control/php-graphql-microservice.git
cd php-graphql-microservice
make
docker-compose up -d
curl -X POST \
       -H "Content-Type: application/json" \
       --data '{ "query": "{ product (id:1) { id name } }" }' \
       localhost:8000

Build with

License

MIT, see LICENSE file.

About

Simple example implementation of a GraphQL API on top of a microservice architecture

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published