项目作者: okayrunner

项目描述 :
Headless Java CMS
高级语言: Java
项目地址: git://github.com/okayrunner/graffiti.git
创建时间: 2017-12-16T15:38:03Z
项目社区:https://github.com/okayrunner/graffiti

开源协议:Apache License 2.0

下载


Graffiti

a sample project utilizing the Giraphe CMS Framework.

Usage

  1. Clone the repo:
  1. git clone https://github.com/creactiviti/graffiti.git
  2. cd graffiti
  1. Setup database:
  1. docker run --name postgres -e POSTGRES_DB=giraphe -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password -d -p 5432:5432 postgres:9.6.5-alpine
  1. Run it:
  1. mvn clean spring-boot:run
  1. From another terminal window, run a query:
  1. curl -s -X POST -H "Content-Type:application/json" -d '{"query":"{ getAllMovies { id title directors { name } } }"}' http://localhost:8080/graphql
  1. Optional: Interact with the API through GraphiQL:
  1. docker run --name=graphiql -p 9100:8080 -d -e GRAPHQL_SERVER=http://<YOUR_IP_GOES_HERE>:8080/graphql creactiviti/graphiql

And the go to http://localhost:9100

How do I use it for my own project?

Check the giraphe tutorial.

License

This project is released under version 2.0 of the Apache License.