Setup Developer Environment
- Go 1.12+
- Node 11.x
- Yarn 9+
- Docker (optional)
Clone traggo/server source from git:
$ git clone https://github.com/traggo/server.git && cd server
If you are in GOPATH, enable go modules explicitly:
$ export GO111MODULE=on
This contains tools for formatting and linting.
$ make download-tools
Install Go and Yarn dependencies.
# make install
The server and ui depends heavily on graphql, for this we use code generators which generate models and resolvers from our schema.graphql. The following command shoud be executed after any change to the file.
$ make generate
Both the server and the ui uses tooling for formatting the code. You can format all files with:
$ make format
We use multiple linters for our code. You can run them all with
$ make lint
Starting the server
$ go run main.go
This starts the traggo server on
!!! node When traggo is started in dev mode (which is by default enabled) then it will load additional config files.
* Normal Env Variables * `.env.development.local` * `.env.development` * The rest from [Configuration#precedence](../config.md#precedence). The `.env.development.local`-file should be used for local changes as it is git ignored.
Starting the React-UI
Commands must be executed inside the ui directory.
$ yarn start
The ui development server will be started on