Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yahoo/parsec-rdl-gen
Parsec Ardielle (RDL) External Generators.
https://github.com/yahoo/parsec-rdl-gen
golang parsec rdl web web-services
Last synced: 5 days ago
JSON representation
Parsec Ardielle (RDL) External Generators.
- Host: GitHub
- URL: https://github.com/yahoo/parsec-rdl-gen
- Owner: yahoo
- License: apache-2.0
- Created: 2016-11-28T17:58:32.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-05-30T02:56:57.000Z (over 2 years ago)
- Last Synced: 2024-06-19T00:40:25.348Z (5 months ago)
- Topics: golang, parsec, rdl, web, web-services
- Language: Go
- Homepage:
- Size: 254 KB
- Stars: 10
- Watchers: 13
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# parsec-rdl-gen [![Build Status](https://app.travis-ci.com/yahoo/parsec-rdl-gen.svg?branch=master)](https://app.travis-ci.com/yahoo/parsec-rdl-gen)
Parsec Ardielle (RDL) External Generators
* parsec-java-model - generator for generating Parsec Java models
* parsec-java-server - generator for generating Parsec Java server
* parsec-java-client - generator for generating Parsec Java client for target web service
* parsec-swagger - generator for generating Swagger JSON schemas## Usage
These generators are designed to co-work with [ardielle-tools](https://github.com/ardielle/ardielle-tools) but can also be used independently. They are executable binaries and takes JSON representation of Ardielle schemas from StdIn.
Sample usage for co-working with [ardielle-tools](https://github.com/ardielle/ardielle-tools):
rdl generate [options]
Please refer to [ardielle-tools](https://github.com/ardielle/ardielle-tools) for more information.
## How to build
Please follow https://golang.org/doc/install to download and install the GO. You also need to set the GOPATH environment, the source code to checkout and build would belong this GOPATH setting, for instance, I set the GOPATH to /Users/guang001/Documents/workspace/go, then I execute the command:
```
go get github.com/yahoo/parsec-rdl-gen/...
```Then GO will checkout the source code to $GOPATH/src/github.com/yahoo/parsec-rdl-gen/, this should be /Users/guang001/Documents/workspace/go/src/github.com/yahoo/parsec-rdl-gen/ in my case, and 'go get' command will build the binary after the fetch code, the binary would be put in $GOPATH/bin/ path. The detail you could reference [How to Write Go Code](https://golang.org/doc/code.html).
So, to build the parsec-rdl-gen, you only need execute: 'go get github.com/yahoo/parsec-rdl-gen/...' if you are ready the GO enviroment. If you need switch the git branch, you could:
```
cd /Users/guang001/Documents/workspace/go/src/github.com/yahoo/parsec-rdl-gen/
git checkout -b dev
```or change to your fork REPO:
```
cd /Users/guang001/Documents/workspace/go/src/github.com/yahoo/parsec-rdl-gen/
git remote set-url origin [email protected]:guang001/apex.git
```Note: The 'go get' command would not refetch(checkout) the code if target directory already exist.
## License
Copyright 2016 Yahoo Inc.
Licensed under the terms of the Apache license. Please see LICENSE.md file distributed with this work for terms.