connector-backend

module
v0.4.1-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2022 License: Apache-2.0

README

connector-backend

connector-backend manages all connector resources and communicates with Visual Data Preparation (VDP) to connect a pipeline to flow the source unstructured visual data to the destination structured data.

Local dev

On the local machine, clone vdp repository in your workspace, move to the repository folder, and launch all dependent microservices:

$ cd <your-workspace>
$ git clone https://github.com/instill-ai/vdp.git
$ cd vdp
$ make dev PROFILE=connector

Clone connector-backend repository in your workspace and move to the repository folder:

$ cd <your-workspace>
$ git clone https://github.com/instill-ai/connector-backend.git
$ cd connector-backend
Build the dev image
$ make build
Run the dev container
$ make dev

Now, you have the Go project set up in the container, in which you can compile and run the binaries together with the integration test in each container shell.

Run the server
$ docker exec -it connector-backend /bin/bash
$ go run ./cmd/migration
$ go run ./cmd/init
$ go run ./cmd/main
Run the Temporal worker
$ docker exec -it connector-backend /bin/bash
$ go run ./cmd/worker
Run the integration test
$ docker exec -it connector-backend /bin/bash
$ make integration-test
Stop the dev container
$ make stop
CI/CD

The latest images will be published to Docker Hub repository at release.

License

See the LICENSE file for licensing information.

Directories

Path Synopsis
cmd
internal
db
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL