Drone is a Container-Native, Continuous Delivery Platform
Go to file
Johannes Batzill 1db4fc9c8d Change create API for space/repo to follow REST best practices (#10)
Move repo and space create apis to /api/v1/repos/ and /api/v1/spaces/ and take name and parentId in body.
2022-09-06 20:36:34 -07:00
.vscode Initial commit 2022-08-09 12:37:37 -07:00
cli Add base structure for rest api, git api, web api. Add base authn and authz, as well as spaces and repository apis 2022-09-05 13:47:00 -07:00
client Remove unnecessary types 2022-09-05 13:47:00 -07:00
contrib Rename project to 'gitness' 2022-08-29 10:12:07 -07:00
docker Rename project to 'gitness' 2022-08-29 10:12:07 -07:00
internal Change create API for space/repo to follow REST best practices (#10) 2022-09-06 20:36:34 -07:00
mocks block 'api' as root space name, minor improvements 2022-09-05 18:45:16 -07:00
scripts Initial commit 2022-08-09 12:37:37 -07:00
types Change create API for space/repo to follow REST best practices (#10) 2022-09-06 20:36:34 -07:00
version Initial commit 2022-08-09 12:37:37 -07:00
web Rename SCM to Gitness 2022-08-29 14:28:46 -07:00
.gitignore Rename project to 'gitness' 2022-08-29 10:12:07 -07:00
CHANGELOG.md Initial commit 2022-08-09 12:37:37 -07:00
go.mod Rename project to 'gitness' 2022-08-29 10:12:07 -07:00
go.sum Rename module to github.com/harness/scm. Fix web/dist.go 2022-08-18 15:15:50 -07:00
LICENSE.md Initial commit 2022-08-09 12:37:37 -07:00
main.go Rename project to 'gitness' 2022-08-29 10:12:07 -07:00
README.md Rename project to 'gitness' 2022-08-29 10:12:07 -07:00
Taskfile.yml Rename project to 'gitness' 2022-08-29 10:12:07 -07:00
yarn.lock Initial commit 2022-08-09 12:37:37 -07:00

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/gitness

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/gitness 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/gitness register

Login to the application:

$ release/gitness login

Logout from the application:

$ release/gitness logout

View your account details:

$ release/gitness account

Generate a peronsal access token:

$ release/gitness token

Create a pipeline:

$ release/gitness pipeline create <name>

List pipelines:

$ release/gitness pipeline ls

Debug and output http responses from the server:

$ DEBUG=true release/gitness pipeline ls

View all commands:

$ release/gitness --help