Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# monolith

https://hackmd.io/-1zsKwbnRw-Xk2bQDsGY6g?view
これの開発レポジトリ

現状、rocheを使って、enterpriseだけ、コード生成を行なった。


この状態からの全てのコミットは、PRを通じて行いたい。
理由は、すべてのコミットにおいて、極力roche側のロジックで対応できるようにしていきたいため、実装したコードがロジック単位でまとめておきたいため。


コミットレベルの粒度は気にしないので、PRだけ機能単位で小さく出すこと。

Binary file added bin/roche
Binary file not shown.
12 changes: 6 additions & 6 deletions domain/repository/enterprise.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 31 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,40 @@ module backend
go 1.16

require (
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 // indirect
github.com/Microsoft/go-winio v0.4.13 // indirect
github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 // indirect
github.com/cenkalti/backoff v2.2.1+incompatible // indirect
github.com/containerd/continuity v0.0.0-20190426062206-aaeac12a7ffc // indirect
github.com/docker/go-connections v0.4.0 // indirect
github.com/docker/go-units v0.4.0 // indirect
github.com/fatih/color v1.12.0 // indirect
github.com/golang/protobuf v1.5.2
github.com/grpc-ecosystem/grpc-gateway v1.9.0
github.com/gotestyourself/gotestyourself v2.2.0+incompatible // indirect
github.com/grpc-ecosystem/grpc-gateway v1.16.0
github.com/grpc-ecosystem/grpc-gateway/v2 v2.4.0
github.com/izumin5210/gex v0.5.1
github.com/izumin5210/grapi v0.5.0
github.com/izumin5210/gex v0.6.1
github.com/izumin5210/grapi v0.5.1-0.20191120153727-b4a7b2759ae6
github.com/lib/pq v1.2.0 // indirect
github.com/mattn/go-isatty v0.0.13 // indirect
github.com/opencontainers/go-digest v1.0.0-rc1 // indirect
github.com/opencontainers/image-spec v1.0.1 // indirect
github.com/opencontainers/runc v0.1.1 // indirect
github.com/ory/dockertest v3.3.4+incompatible // indirect
github.com/riita10069/roche v0.0.0-20210614134621-d01963621347 // indirect
github.com/sirupsen/logrus v1.4.2 // indirect
github.com/spf13/viper v1.8.0 // indirect
github.com/srvc/appctx v0.1.0
google.golang.org/genproto v0.0.0-20210426193834-eac7f76ac494
google.golang.org/grpc v1.37.1
go.uber.org/atomic v1.8.0 // indirect
go.uber.org/multierr v1.7.0 // indirect
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a // indirect
golang.org/x/sys v0.0.0-20210616094352-59db8d763f22 // indirect
golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b // indirect
golang.org/x/text v0.3.6 // indirect
google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c
google.golang.org/grpc v1.38.0
google.golang.org/grpc/examples v0.0.0-20210608045717-7301a311748c // indirect
google.golang.org/protobuf v1.26.0
gotest.tools v2.2.0+incompatible // indirect
k8s.io/utils v0.0.0-20190920012459-5008bf6f8cd6 // indirect
)
169 changes: 169 additions & 0 deletions go.sum

Large diffs are not rendered by default.

72 changes: 30 additions & 42 deletions infra/repository/enterprise.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions migrate/1623849587_add_enterprise_table.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP TABLE IF EXISTS `enterprise`;
10 changes: 10 additions & 0 deletions migrate/1623849587_add_enterprise_table.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CREATE TABLE IF NOT EXISTS `enterprise` (
`id` VARCHAR(255) NOT NULL,
`name` VARCHAR(255) NOT NULL,
`image_url` VARCHAR(255) NOT NULL,
`description` VARCHAR(255) NOT NULL,
`homepage` VARCHAR(255) NOT NULL,
`created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
`updated_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
);
2 changes: 1 addition & 1 deletion roche.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ModuleName = "github.com/repository/package"
ModuleName = "github.com/volare-backend/monolith"
ServerDir = "app/server"
UsecaseDir = "usecase"
DomainRepoDir = "domain/repository"
Expand Down
2 changes: 2 additions & 0 deletions tools.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 21 additions & 21 deletions usecase/enterprise.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.