https://github.com/izumin5210/dform
CLI to manage Dgraph schema
https://github.com/izumin5210/dform
dgraph golang
Last synced: 9 months ago
JSON representation
CLI to manage Dgraph schema
- Host: GitHub
- URL: https://github.com/izumin5210/dform
- Owner: izumin5210
- License: mit
- Created: 2018-01-08T09:02:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-22T06:28:19.000Z (over 8 years ago)
- Last Synced: 2025-03-28T02:28:36.603Z (about 1 year ago)
- Topics: dgraph, golang
- Language: Go
- Homepage: https://github.com/izumin5210/dform
- Size: 93.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dform
[](https://travis-ci.org/izumin5210/dform)
[](https://codecov.io/gh/izumin5210/dform)
[](https://godoc.org/github.com/izumin5210/dform)
[](https://goreportcard.com/report/github.com/izumin5210/dform)
[](./LICENSE)
CLI to manage [Dgraph](https://dgraph.io/) schema.
## Usage
TBD
## Development
### with rid (run-in-docker)
You can develop dform with [rid](https://github.com/creasty/rid).
#### Getting started
```
# Bootstrap the project
$ rid bootstrap
# Start Dgraph server
$ rid dgraph start
```
#### Executing app
```
# `rid run` execute `go build` and `./bin/dform` in docker container
$ rid run
izumin5210dform_app_1 is up-to-date
make: Nothing to be done for 'all'.
CLI tool to manage Dgraph schema
Usage:
dform [command]
Available Commands:
export Export schema information
help Help about any command
version Print version information
Flags:
--config string config file (default is $PWD/.dform.toml)
-h, --help help for dform
Use "dform [command] --help" for more information about a command.
```
#### Run tests
```
# Start Dgraph server for testing
$ rid dgraph test start
# Run tests
$ rid make test
```