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.
- Host: GitHub
- URL: https://github.com/dgf/goqldom
- Owner: dgf
- License: bsd-2-clause
- Created: 2018-09-25T00:05:06.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-26T17:59:33.000Z (almost 8 years ago)
- Last Synced: 2025-03-16T19:25:40.219Z (over 1 year ago)
- Topics: golang, graphql
- Language: Go
- Size: 52.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```