An open API service indexing awesome lists of open source software.

https://github.com/dgf/goqldom

GraphQL based HTTP service for DOM selections.
https://github.com/dgf/goqldom

golang graphql

Last synced: 2 months ago
JSON representation

GraphQL based HTTP service for DOM selections.

Awesome Lists containing this project

README

          

# goqldom

GraphQL based HTTP service for DOM selections.

## Development

### Requirements (once to build)

install [Yarn](https://yarnpkg.com) and [Parcel](https://parceljs.org)

```shell
yarn global add parcel-bundler
```

install frontend dependencies

```shell
yarn install
```

install [Govendor](https://github.com/kardianos/govendor) and [GoReleaser](https://goreleaser.com)

```shell
go get -u github.com/kardianos/govendor
go get -u github.com/goreleaser/goreleaser
```

synchronize service dependencies

```shell
govendor sync
```

### Build frontend assets (for every frontend change)

serve it on the fly

```shell
parcel serve -d foo index.html
```

run Parcel to build the static assets

```shell
parcel build -d assets index.html
```

build the virtual file system `assets_vfsdata.go` of the static assets

```shell
go run service/vfs/generate.go
```

### Run the service

just run the service main while developing

```shell
go run service/main.go
```

### Test the release build

build the distribution without a tag

```shell
goreleaser --skip-publish --snapshot --rm-dist
```