Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/runabol/graffiti
Headless Java CMS
https://github.com/runabol/graffiti
apache2 graphql headless-cms java postgresql spring-boot
Last synced: 25 days ago
JSON representation
Headless Java CMS
- Host: GitHub
- URL: https://github.com/runabol/graffiti
- Owner: runabol
- License: apache-2.0
- Created: 2017-12-16T15:38:03.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-17T18:02:38.000Z (almost 7 years ago)
- Last Synced: 2024-05-19T19:26:58.813Z (7 months ago)
- Topics: apache2, graphql, headless-cms, java, postgresql, spring-boot
- Language: Java
- Size: 122 KB
- Stars: 59
- Watchers: 11
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-graphql-java - graffiti - a headless Java CMS. (Exposing a Schema / Code First)
README
# Graffiti
a sample project utilizing the [Giraphe](https://github.com/creactiviti/giraphe) CMS Framework.
# Usage
1. Clone the repo:
```
git clone https://github.com/creactiviti/graffiti.git
cd graffiti
```2. Setup database:
```
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
```3. Run it:
```
mvn clean spring-boot:run
```4. From another terminal window, run a query:
```
curl -s -X POST -H "Content-Type:application/json" -d '{"query":"{ getAllMovies { id title directors { name } } }"}' http://localhost:8080/graphql
```5. Optional: Interact with the API through GraphiQL:
```
docker run --name=graphiql -p 9100:8080 -d -e GRAPHQL_SERVER=http://:8080/graphql creactiviti/graphiql
```And the go to [http://localhost:9100](http://localhost:9100)
# How do I use it for my own project?
Check the [giraphe tutorial](https://github.com/creactiviti/giraphe#getting-started).
# License
This project is released under version 2.0 of the Apache License.