Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sogko/todomvc-relay-go
React/Relay TodoMVC app, driven by a Golang GraphQL backend
https://github.com/sogko/todomvc-relay-go
Last synced: about 2 months ago
JSON representation
React/Relay TodoMVC app, driven by a Golang GraphQL backend
- Host: GitHub
- URL: https://github.com/sogko/todomvc-relay-go
- Owner: sogko
- License: mit
- Created: 2015-10-02T14:13:11.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-03T12:53:52.000Z (over 8 years ago)
- Last Synced: 2024-10-12T13:24:38.987Z (2 months ago)
- Language: JavaScript
- Size: 29.3 KB
- Stars: 66
- Watchers: 5
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-graphql - todomvc-relay-go - Port of the React/Relay TodoMVC app, driven by a Golang GraphQL backend. (Examples / Go Examples)
- awesome-relay - `todomvc-relay-go` - React/Relay TodoMVC app, driven by a Golang GraphQL backend. (Go)
README
# todomvc-relay-go
Port of the [React/Relay TodoMVC app](https://github.com/facebook/relay/tree/master/examples/todo), driven by a Golang GraphQL backend## Parts and pieces
- [golang-relay-starter-kit](https://github.com/sogko/golang-relay-starter-kit)
- [graphql-go](https://github.com/chris-ramon/graphql-go)
- [graphql-go-handler](https://github.com/sogko/graphql-go-handler)
- [graphql-relay-go](https://github.com/sogko/graphql-relay-go)### Notes:
This is based on alpha version of `graphql-go` and `graphql-relay-go`.
Be sure to watch both repositories for latest changes.## Installation
1. Install dependencies for NodeJS app server
```
npm install
```
2. Install dependencies for Golang GraphQL server
```
go get -v ./...
```## Running
Start a local server:
```
npm start
```The above command will run both the NodeJS app server and Golang GraphQL server concurrently.
- Golang GraphQL server will be running at http://localhost:8080/graphql
- NodeJS app server will be running at http://localhost:3000## Developing
Any changes you make to files in the `js/` directory will cause the server to
automatically rebuild the app and refresh your browser.If at any time you make changes to `data/schema.go`, stop the server,
regenerate `data/schema.json`, and restart the server:```
npm run update-schema
npm start
```