Skip to content

『Go + Docker Composeを使ってEdgeDBを動かしてみた』のサンプルコードです。

Notifications You must be signed in to change notification settings

tatsuya0429/EdgeDB-Golang-Docker-Sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EdgeDB Golang Docker Sample

Go + Docker Composeを使ってEdgeDBを動かしてみた』のサンプルコードです。

使い方

  1. credentialsフォルダにlocal_dev.json を作成する。
  2. docker-compose up -d --build を実行
  3. docker-compose exec db edgedb -I local_dev migrateを実行

ディレクトリ構成

.
├── Dockerfile
├── credentials // EdgeDBの認証関連のファイルを入れる
│   └── local_dev.json
├── docker-compose.yml
├── go.mod
├── go.sum
├── main.go
├── schema // EdgeDBのスキーマのファイルを入れる
│   ├── default.esdl
│   └── migrations  // マイグレーションファイルを入れる
│       └── 00001.edgeql
└── src
    ├── handlers  // Controller層
    │   ├── todo_handler.go
    │   └── user_handler.go
    ├── infrastructure // Infrastructure層
    │   ├── config.go
    │   └── dbclient.go
    ├── models // Domain層
    │   ├── todo.go
    │   └── user.go
    └── repositories // Repository層
        ├── todo_repository.go
        └── user_repositories.go

About

『Go + Docker Composeを使ってEdgeDBを動かしてみた』のサンプルコードです。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published