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.
|
|
|
|
|
2018-07-07 21:44:42 +00:00
|
|
|
### 2. Build type checkers, controllers, middlewares
|
2018-06-10 20:49:32 +00:00
|
|
|
|
2018-07-07 21:44:42 +00:00
|
|
|
Type checkers, controllers and middlewares have to be built before using them. A build command exists for that purpose.
|
2018-06-10 20:49:32 +00:00
|
|
|
```bash
|
2018-07-07 21:44:42 +00:00
|
|
|
aicra [options] .
|
2018-06-10 20:49:32 +00:00
|
|
|
```
|
|
|
|
|
2018-07-07 21:44:42 +00:00
|
|
|
**Options**
|
2018-09-28 14:19:39 +00:00
|
|
|
- If you want the *controller* folder different than `controller` define it with `-c`
|
2018-07-07 21:44:42 +00:00
|
|
|
- If you want the *middleware* folder different than `middleware` define it with `-m`
|
|
|
|
- If you want the *type checker* folder different than `types` define it with `-t`
|
2018-06-10 20:49:32 +00:00
|
|
|
|
2018-07-07 21:44:42 +00:00
|
|
|
### 3. Launch the api
|
2018-06-10 20:49:32 +00:00
|
|
|
|
|
|
|
```
|
2018-09-28 14:19:39 +00:00
|
|
|
$ go run ./main.go
|
2018-06-10 20:49:32 +00:00
|
|
|
```
|