Skip to content

Commit 67246bb

Browse files
authored
Merge pull request #13 from dpordomingo/project-structure
Project structure
2 parents 515877c + b96ded1 commit 67246bb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+7404
-5452
lines changed

.editorconfig

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
end_of_line = lf
9+
charset = utf-8
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true
12+
indent_style = space
13+
indent_size = 4
14+
15+
[*.hbs]
16+
insert_final_newline = false
17+
18+
[*.{js,ts,jsx,yml,json,diff,lock}]
19+
indent_size = 2
20+
21+
[*.{diff}]
22+
trim_trailing_whitespace = false
23+
24+
[{*.go,Makefile,Makefile.*,makefile}]
25+
indent_style = tab

.gitignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# default internal db
2+
/repos
3+
4+
# dependencies
5+
/node_modules
6+
7+
# builds
8+
/build
9+
10+
# testing, logs, caches...
11+
/coverage
12+
coverage.txt
13+
profile.out
14+
npm-debug.log*
15+
yarn-debug.log*
16+
yarn-error.log*
17+
.eslintcache
18+
19+
# misc
20+
.DS_Store
21+
.env
22+
.env.local
23+
.env.development.local
24+
.env.test.local
25+
.env.production.local
26+
27+
# ci files
28+
.ci
29+
.docsrv-resources

Gopkg.lock

Lines changed: 23 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,10 @@
1-
# Gopkg.toml example
2-
#
31
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
42
# for detailed Gopkg.toml documentation.
5-
#
6-
# required = ["github.com/user/thing/cmd/thing"]
7-
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
8-
#
9-
# [[constraint]]
10-
# name = "github.com/user/project"
11-
# version = "1.0.0"
12-
#
13-
# [[constraint]]
14-
# name = "github.com/user/project2"
15-
# branch = "dev"
16-
# source = "github.com/myfork/project2"
17-
#
18-
# [[override]]
19-
# name = "github.com/x/y"
20-
# version = "2.4.0"
21-
#
22-
# [prune]
23-
# non-go = false
24-
# go-tests = true
25-
# unused-packages = true
263

4+
[prune]
5+
go-tests = true
6+
unused-packages = true
7+
non-go = true
278

289
[[constraint]]
2910
name = "github.com/go-chi/chi"
@@ -45,10 +26,10 @@
4526
name = "github.com/sirupsen/logrus"
4627
version = "1.0.5"
4728

48-
[prune]
49-
go-tests = true
50-
unused-packages = true
51-
5229
[[constraint]]
5330
name = "github.com/go-sql-driver/mysql"
5431
branch = "master"
32+
33+
[[constraint]]
34+
name = "github.com/stretchr/testify"
35+
version = "1.2.1"

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Alexander Bezzubov <[email protected]> (@bzz)

build/index.html

Lines changed: 0 additions & 6 deletions
This file was deleted.

cmd/server/main.go renamed to cmd/gitbase-playground/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func main() {
4848
}
4949
defer db.Close()
5050

51-
static := handler.NewStatic("build", conf.ServerURL)
51+
static := handler.NewStatic("build/public", conf.ServerURL)
5252

5353
// start the router
5454
router := server.Router(logger, static, version, db)

public/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<body>
4+
<p>It works.</p>
5+
<p><a href="/secondary.html">secondary route</a></p>
6+
</body>
7+
</html>

public/secondary.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<body>
4+
<p>Secondary route works.</p>
5+
<p><a href="/index.html">back to index</a></p>
6+
</body>
7+
</html>

vendor/github.com/davecgh/go-spew/LICENSE

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)