Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lfittl/beatql
BeatQL - Synthesized Beats powered by react-music, GraphQL and PostgreSQL
https://github.com/lfittl/beatql
Last synced: 4 days ago
JSON representation
BeatQL - Synthesized Beats powered by react-music, GraphQL and PostgreSQL
- Host: GitHub
- URL: https://github.com/lfittl/beatql
- Owner: lfittl
- License: other
- Created: 2016-08-23T08:06:57.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-18T15:54:37.000Z (about 8 years ago)
- Last Synced: 2024-08-01T02:29:34.396Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 282 KB
- Stars: 71
- Watchers: 5
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BeatQL
![](https://d17oy1vhnax1f7.cloudfront.net/items/3m1F25150d0a1g012a08/Screen%20Shot%202016-09-15%20at%2012.50.07%20PM%201.png)
Demo app that combines react-music, GraphQL and PostgreSQL.
It also shows off GraphQL mutations and subscriptions, based on [Apollo Client](https://github.com/apollostack/apollo-client).
Full background story: https://speakerdeck.com/lfittl/graphql-postgresql-p-dot-s-aka-beatql
## Getting started
First things first:
```
git clone https://github.com/lfittl/beatql
cd beatql
npm install
```Then, boot up a PostgreSQL database and load the data structure:
```
docker-compose up -d db
psql -h `docker-machine ip` -U beatql -f data/sql/00_schema.sql
```Next, lets load the song from the [react-music demo](https://github.com/FormidableLabs/react-music/blob/master/demo/index.js):
```
psql -h `docker-machine ip` -U beatql -f data/sql/01_sample_song.sql
```In addition, run the following to enable LISTEN/NOTIFY for powering GraphQL subscriptions:
```
psql -h `docker-machine ip` -U beatql -f data/sql/02_notify.sql
```Start the server:
```
npm start
```You can then visit http://localhost:5000/ and should hear the demo song :-)
## Authors
Hacked together by [Lukas Fittl](https://github.com/lfittl).
None of this would have been possible without [react-music](https://github.com/FormidableLabs/react-music) made by [Ken Wheeler](https://github.com/kenwheeler).
## LICENSE
Copyright (c) 2016, Lukas Fittl
Licensed under the MIT license.Demo code used from react-music is licensed under the [MIT license](https://opensource.org/licenses/MIT).
Code taken from relay-starter-kit is licensed under the [BSD license](https://github.com/relayjs/relay-starter-kit/blob/master/LICENSE).
Copyright (c) 2013-2015, Facebook, Inc. All rights reserved.See LICENSE file for details.