Skip to content

Commit 57c8580

Browse files
author
Tom
committed
Revert "use local references instead of github, and fix readme"
This reverts commit 13ed265.
1 parent 13ed265 commit 57c8580

File tree

8 files changed

+36
-14
lines changed

8 files changed

+36
-14
lines changed

cmd/root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ import (
2424
"fmt"
2525
"os"
2626

27-
"../config"
28-
"../daemon"
2927
"github.com/spf13/cobra"
28+
"github.com/vibrato/TechTestApp/config"
29+
"github.com/vibrato/TechTestApp/daemon"
3030
)
3131

3232
var cfgFile string

cmd/serve.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import (
2424
"log"
2525
"net/http"
2626

27-
"../daemon"
2827
"github.com/spf13/cobra"
28+
"github.com/vibrato/TechTestApp/daemon"
2929
)
3030

3131
// serveCmd represents the serve command

cmd/updatedb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ package cmd
2323
import (
2424
"fmt"
2525

26-
"../db"
2726
"github.com/spf13/cobra"
27+
"github.com/vibrato/TechTestApp/db"
2828
)
2929

3030
// updatedbCmd represents the updatedb command

daemon/deamon.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"os/signal"
2828
"syscall"
2929

30-
"../ui"
30+
"github.com/vibrato/TechTestApp/ui"
3131
)
3232

3333
// Config - configuration for daemon package

db/db.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ import (
2727

2828
"github.com/lib/pq"
2929

30-
"../model"
3130
_ "github.com/lib/pq"
31+
"github.com/vibrato/TechTestApp/model"
3232
)
3333

3434
// Config - configuration for the db package

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
package main
2222

23-
import "./cmd"
23+
import "github.com/vibrato/TechTestApp/cmd"
2424

2525
func main() {
2626
cmd.Execute()

readme.md

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Vibrato Tech Test
22

3+
[![Build Status][circleci-badge]][circleci]
4+
[![Release][release-badge]][release]
5+
[![GoReportCard][report-badge]][report]
6+
[![License][license-badge]][license]
7+
8+
[circleci-badge]: https://circleci.com/gh/vibrato/TechTestApp.svg?style=shield&circle-token=8dfd03c6c2a5dc5555e2f1a84c36e33bc58ad0aa
9+
[circleci]: https://circleci.com/gh/vibrato/TechTestApp
10+
[release-badge]: http://img.shields.io/github/release/vibrato/TechTestApp/all.svg?style=flat
11+
[release]:https://github.com/vibrato/TechTestApp/releases
12+
[report-badge]: https://goreportcard.com/badge/github.com/vibrato/TechTestApp
13+
[report]: https://goreportcard.com/report/github.com/vibrato/TechTestApp
14+
[license-badge]: https://img.shields.io/github/license/vibrato/TechTestApp.svg?style=flat
15+
[license]: https://github.com/vibrato/TechTestApp/license
16+
317
## Overview
418

519
Candidates are provided with this simple web application.
@@ -65,11 +79,11 @@ Single page application designed to be ran inside a container or on a vm (IaaS)
6579

6680
It is completely self contained, and should not require any additional dependencies to run.
6781

68-
## Compile from source
69-
70-
run `build.sh`
82+
## Install
7183

72-
the `dist` folder contains the compiled web package
84+
1. Download latest binary from release
85+
2. unzip into desired location
86+
3. and you should be good to go
7387

7488
## Start server
7589

@@ -85,4 +99,12 @@ update `conf.toml` with database settings
8599

86100
`/api/tasks/` - api endpoint to create, read, update, and delete tasks
87101

88-
`/healthcheck/` - Used to validate the health of the application
102+
`/healthcheck/` - Used to validate the health of the application
103+
104+
## Compile from source
105+
106+
`go get -d github.com/vibrato/VibratoTechTest`
107+
108+
run `build.sh`
109+
110+
the `dist` folder contains the compiled web package

ui/ui.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ import (
2929
"strconv"
3030
"time"
3131

32-
"../db"
33-
"../model"
3432
"github.com/gorilla/mux"
33+
"github.com/vibrato/TechTestApp/db"
34+
"github.com/vibrato/TechTestApp/model"
3535
)
3636

3737
// Config configuration for ui package

0 commit comments

Comments
 (0)