2018-06-10 20:49:32 +00:00
|
|
|
# xdrm go framework
|
|
|
|
|
|
|
|
### 1. Setup
|
|
|
|
|
|
|
|
All commands above must be launched from the root of this repository.
|
|
|
|
|
|
|
|
In order for next steps to work properly whatever your configuration, you might execute the following command:
|
|
|
|
```bash
|
2018-07-05 17:19:39 +00:00
|
|
|
chmod +x $GOPATH/src/git.xdrm.io/go/aicra/*.sh
|
2018-06-10 20:49:32 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### 2. Build type checkers
|
|
|
|
|
|
|
|
Default types have to be built before using them.
|
|
|
|
|
|
|
|
```bash
|
2018-07-05 17:19:39 +00:00
|
|
|
$GOPATH/src/git.xdrm.io/go/aicra/build-types.sh
|
2018-06-10 20:49:32 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
If the build process succeeds, the `./types` folder must contain *.so* files.
|
|
|
|
|
|
|
|
### 3. Build controllers
|
|
|
|
|
|
|
|
Controllers are located under the `./root` file structure.
|
|
|
|
|
|
|
|
```bash
|
2018-07-05 17:19:39 +00:00
|
|
|
$GOPATH/src/git.xdrm.io/go/aicra/build-controllers.sh ./root
|
2018-06-10 20:49:32 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
If the build process succeeds, the `./controllers` folder must contain *.so* files.
|
|
|
|
|
|
|
|
### 4. Launch the api
|
|
|
|
|
|
|
|
```
|
|
|
|
$ go run ./cmd/test/main.go
|
|
|
|
```
|