Go to file
Tan Nhu 7f5a783416 Merge pull request #3 from harness/ui-template-improved
Simplify routing system
2022-08-22 16:04:37 -07:00
.vscode Initial commit 2022-08-09 12:37:37 -07:00
cli Rename module to github.com/harness/scm. Fix web/dist.go 2022-08-18 15:15:50 -07:00
client Rename module to github.com/harness/scm. Fix web/dist.go 2022-08-18 15:15:50 -07:00
contrib Rename module to github.com/harness/scm. Fix web/dist.go 2022-08-18 15:15:50 -07:00
docker Rename module to github.com/harness/scm. Fix web/dist.go 2022-08-18 15:15:50 -07:00
internal Rename module to github.com/harness/scm. Fix web/dist.go 2022-08-18 15:15:50 -07:00
mocks fix import ordering for mock classes 2022-08-18 15:22:53 -07:00
scripts Initial commit 2022-08-09 12:37:37 -07:00
types Rename module to github.com/harness/scm. Fix web/dist.go 2022-08-18 15:15:50 -07:00
version Initial commit 2022-08-09 12:37:37 -07:00
web Merge pull request #3 from harness/ui-template-improved 2022-08-22 16:04:37 -07:00
.gitignore Rename module to github.com/harness/scm. Fix web/dist.go 2022-08-18 15:15:50 -07:00
CHANGELOG.md Initial commit 2022-08-09 12:37:37 -07:00
LICENSE.md Initial commit 2022-08-09 12:37:37 -07:00
README.md Rename module to github.com/harness/scm. Fix web/dist.go 2022-08-18 15:15:50 -07:00
Taskfile.yml Rename module to github.com/harness/scm. Fix web/dist.go 2022-08-18 15:15:50 -07:00
go.mod Rename module to github.com/harness/scm. Fix web/dist.go 2022-08-18 15:15:50 -07:00
go.sum Rename module to github.com/harness/scm. Fix web/dist.go 2022-08-18 15:15:50 -07:00
main.go Rename module to github.com/harness/scm. Fix web/dist.go 2022-08-18 15:15:50 -07:00
yarn.lock Initial commit 2022-08-09 12:37:37 -07:00

README.md

Pre-Requisites

Install the latest stable version of Node and Go version 1.17 or higher, and then install the below Go programs. Ensure the GOPATH bin directory is added to your PATH.

$ go install github.com/golang/mock/mockgen@latest
$ go install github.com/google/wire/cmd/wire@latest

Build

Build the user interface:

$ pushd web
$ npm install
$ npm run build
$ popd

Build the server and command line tools:

$ go generate ./...
$ go build -o release/scm-app

Test

Execute the unit tests:

$ go generate ./...
$ go test -v -cover ./...

Run

This project supports all operating systems and architectures supported by Go. This means you can build and run the system on your machine; docker containers are not required for local development and testing.

Start the server at localhost:3000

$ release/scm-app server

User Interface

This project includes a simple user interface for interacting with the system. When you run the application, you can access the user interface by navigating to http://localhost:3000 in your browser.

Swagger

This project includes a swagger specification. When you run the application, you can access the swagger specification by navigating to http://localhost:3000/swagger in your browser.

Command Line

This project includes simple command line tools for interacting with the system. Please remember that you must start the server before you can execute commands.

Register a new user:

$ release/scm-app register

Login to the application:

$ release/scm-app login

Logout from the application:

$ release/scm-app logout

View your account details:

$ release/scm-app account

Generate a peronsal access token:

$ release/scm-app token

Create a pipeline:

$ release/scm-app pipeline create <name>

List pipelines:

$ release/scm-app pipeline ls

Debug and output http responses from the server:

$ DEBUG=true release/scm-app pipeline ls

View all commands:

$ release/scm-app --help