sample-app

command module
v0.0.0-...-4ae1f35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2022 License: MIT Imports: 7 Imported by: 0

README

sample-app

最初に実施すること

一番最初は sample-app データベースが存在しないのでエラーになります。そのため、初回だけコンテナに入って CREATE DATABASE をします。

$ docker-compose up --build

コンテナの中に入る。

$ docker ps -a
$ docker exec -it {Container ID} bin/bash

admin ユーザで Postgres に接続する。

$ psql -U admin

次のクエリを実行する。

CREATE DATABASE "sample-app" OWNER = admin TEMPLATE = template0 ENCODING = 'UTF8' LC_COLLATE = 'ja_JP.UTF-8' LC_CTYPE = 'ja_JP.UTF-8';

How to launch the application

$ docker-compose up --build

How to connect the database

After launching your application with docker-compose, connect to the sample-app-db container with the admin user.

$ docker exec -it sampe-app-db psql -U admin

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
infrastructure
db

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL