Skip to content

Commit f58445e

Browse files
authored
Merge pull request #57 from servian/challenge
The Challenge is set.
2 parents 386e3a7 + 0ceedb1 commit f58445e

20 files changed

+83
-83
lines changed

.circleci/config.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
version: 2
55
jobs:
66
build:
7-
working_directory: /go/src/github.com/servian/TechTestApp
7+
working_directory: /go/src/github.com/servian/TechChallengeApp
88
docker:
99
- image: circleci/golang:latest
1010

@@ -17,7 +17,7 @@ jobs:
1717
- run: go test -v -race -cover ./...
1818

1919
deploy:
20-
working_directory: /go/src/github.com/servian/TechTestApp
20+
working_directory: /go/src/github.com/servian/TechChallengeApp
2121
docker:
2222
- image: circleci/golang:latest
2323

@@ -29,9 +29,9 @@ jobs:
2929
command: |
3030
go get -v -t -d ./...
3131
mkdir output
32-
go build -v -o TechTestApp .
32+
go build -v -o TechChallengeApp .
3333
ls
34-
./TechTestApp --version | sed -e 's/TechTestApp version /v./' > versionfile
34+
./TechChallengeApp --version | sed -e 's/TechChallengeApp version /v./' > versionfile
3535
3636
3737
- run:
@@ -46,17 +46,17 @@ jobs:
4646
4747
mkdir -p dist
4848
49-
go build -v -o TechTestApp .
49+
go build -v -o TechChallengeApp .
5050
51-
cp TechTestApp dist/
51+
cp TechChallengeApp dist/
5252
cp -r assets dist/
5353
cp conf.toml dist/
5454
55-
rm TechTestApp
55+
rm TechChallengeApp
5656
5757
export version=$(cat versionfile)
5858
59-
zip -r "output/TechTestApp_${version}_linux64.zip" dist/*
59+
zip -r "output/TechChallengeApp_${version}_linux64.zip" dist/*
6060
6161
# build for macos
6262
- run:
@@ -71,17 +71,17 @@ jobs:
7171
7272
mkdir -p dist
7373
74-
go build -v -o TechTestApp .
74+
go build -v -o TechChallengeApp .
7575
76-
cp TechTestApp dist/
76+
cp TechChallengeApp dist/
7777
cp -r assets dist/
7878
cp conf.toml dist/
7979
80-
rm TechTestApp
80+
rm TechChallengeApp
8181
8282
export version=$(cat versionfile)
8383
84-
zip -r "output/TechTestApp_${version}_darwin.zip" dist/*
84+
zip -r "output/TechChallengeApp_${version}_darwin.zip" dist/*
8585
8686
# build windows 64 bit
8787
- run:
@@ -100,17 +100,17 @@ jobs:
100100
101101
mkdir -p dist
102102
103-
go build -v -o TechTestApp.exe .
103+
go build -v -o TechChallengeApp.exe .
104104
105-
cp TechTestApp.exe dist/
105+
cp TechChallengeApp.exe dist/
106106
cp -r assets dist/
107107
cp conf.toml dist/
108108
109-
rm TechTestApp.exe
109+
rm TechChallengeApp.exe
110110
111111
export version=$(cat versionfile)
112112
113-
zip -r "output/TechTestApp_${version}_win64.zip" dist/*
113+
zip -r "output/TechChallengeApp_${version}_win64.zip" dist/*
114114
115115
#build windows 32 bit
116116
- run:
@@ -125,17 +125,17 @@ jobs:
125125
126126
mkdir -p dist
127127
128-
go build -v -o TechTestApp.exe .
128+
go build -v -o TechChallengeApp.exe .
129129
130-
cp TechTestApp.exe dist/
130+
cp TechChallengeApp.exe dist/
131131
cp -r assets dist/
132132
cp conf.toml dist/
133133
134-
rm TechTestApp.exe
134+
rm TechChallengeApp.exe
135135
136136
export version=$(cat versionfile)
137137
138-
zip -r "output/TechTestApp_${version}_win32.zip" dist/*
138+
zip -r "output/TechChallengeApp_${version}_win32.zip" dist/*
139139
140140
- run:
141141
name: Release if new version
@@ -171,4 +171,4 @@ workflows:
171171
branches:
172172
only: master
173173
tags:
174-
ignore: /.*/
174+
ignore: /.*/

.github/PULL_REQUEST_TEMPLATE.md

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

33
Please explain the changes you made here.
44

5-
Fixes: https://github.com/servian/TechTestApp/issues/{issue number}
5+
Fixes: https://github.com/servian/TechChallengeApp/issues/{issue number}
66

77
### Checklist
88

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ dist/
2121
/vendor
2222

2323
# Output Binary
24-
TechTestApp
24+
TechChallengeApp

ASSESSMENT.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ There *should not* be a requirement for Servian to access a candidate's cloud se
66

77
Demonstrate regular commits and good git workflow practices.
88

9-
There is no time limit for this test.
9+
There is no time limit for this challenge.
1010

1111
Candidates should provide documentation on their solution, including:
1212

@@ -51,7 +51,7 @@ Candidates will be assessed across the following categories:
5151
- Auto scaling and highly available frontend
5252
- Highly available Database
5353

54-
## Tech Test Application
54+
## Tech Challenge Application
5555

5656
Single page application designed to be ran inside a container or on a vm (IaaS) with a postgres database to store data.
5757

@@ -67,9 +67,9 @@ It is completely self contained, and should not require any additional dependenc
6767

6868
update `conf.toml` with database settings
6969

70-
`./TechTestApp updatedb` to create a database and seed it with test data
70+
`./TechChallengeApp updatedb` to create a database and seed it with test data
7171

72-
`./TechTestApp serve` will start serving requests
72+
`./TechChallengeApp serve` will start serving requests
7373

7474
## Interesting endpoints
7575

@@ -89,12 +89,12 @@ update `conf.toml` with database settings
8989

9090
### Process
9191

92-
`go get -d github.com/Servian/TechTestApp`
92+
`go get -d github.com/Servian/TechChallengeApp`
9393

9494
run `build.sh`
9595

9696
the `dist` folder contains the compiled web package
9797

9898
### Docker build
9999

100-
`docker build . -t techtestapp:latest`
100+
`docker build . -t techchallengeapp:latest`

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,26 @@ RUN go get -d -v github.com/go-swagger/go-swagger \
1212
&& mv /tmp/swagger-ui-$SWAGGER_UI_VERSION /tmp/swagger \
1313
&& sed -i 's#"https://petstore\.swagger\.io/v2/swagger\.json"#"./swagger.json"#g' /tmp/swagger/dist/index.html
1414

15-
WORKDIR $GOPATH/src/github.com/servian/TechTestApp
15+
WORKDIR $GOPATH/src/github.com/servian/TechChallengeApp
1616

17-
COPY go.mod go.sum $GOPATH/src/github.com/servian/TechTestApp/
17+
COPY go.mod go.sum $GOPATH/src/github.com/servian/TechChallengeApp/
1818

1919
RUN go mod tidy
2020

2121
COPY . .
2222

23-
RUN go build -o /TechTestApp
23+
RUN go build -o /TechChallengeApp
2424
RUN swagger generate spec -o /swagger.json
2525

2626
FROM alpine:latest
2727

28-
WORKDIR /TechTestApp
28+
WORKDIR /TechChallengeApp
2929

3030
COPY assets ./assets
3131
COPY conf.toml ./conf.toml
3232

3333
COPY --from=build /tmp/swagger/dist ./assets/swagger
3434
COPY --from=build /swagger.json ./assets/swagger/swagger.json
35-
COPY --from=build /TechTestApp TechTestApp
35+
COPY --from=build /TechChallengeApp TechChallengeApp
3636

37-
ENTRYPOINT [ "./TechTestApp" ]
37+
ENTRYPOINT [ "./TechChallengeApp" ]

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ mkdir -p dist
88

99
go mod tidy
1010

11-
go build -o TechTestApp .
11+
go build -o TechChallengeApp .
1212

13-
cp TechTestApp dist/
13+
cp TechChallengeApp dist/
1414
cp -r assets dist/
1515
cp conf.toml dist/
1616

17-
rm TechTestApp
17+
rm TechChallengeApp

cmd/root.go

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

27-
"github.com/servian/TechTestApp/config"
28-
"github.com/servian/TechTestApp/daemon"
27+
"github.com/servian/TechChallengeApp/config"
28+
"github.com/servian/TechChallengeApp/daemon"
2929
"github.com/spf13/cobra"
3030
)
3131

@@ -34,7 +34,7 @@ var cfg *daemon.Config
3434

3535
// rootCmd represents the base command when called without any subcommands
3636
var rootCmd = &cobra.Command{
37-
Use: "TechTestApp",
37+
Use: "TechChallengeApp",
3838
Short: "Application used to test potential candidates at Servian",
3939
Long: `
4040
.:ooooool, .:odddddl;. .;ooooc. .l, ;c. ::. 'coddddoc' ,looooooc.

cmd/serve.go

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

27-
"github.com/servian/TechTestApp/daemon"
27+
"github.com/servian/TechChallengeApp/daemon"
2828
"github.com/spf13/cobra"
2929
)
3030

cmd/updatedb.go

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

26-
"github.com/servian/TechTestApp/db"
26+
"github.com/servian/TechChallengeApp/db"
2727
"github.com/spf13/cobra"
2828
)
2929

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-
"github.com/servian/TechTestApp/ui"
30+
"github.com/servian/TechChallengeApp/ui"
3131
)
3232

3333
// Config - configuration for daemon package

0 commit comments

Comments
 (0)