Sign inSign up

tsuzu/coding_challenge_03

By tsuzu

•Updated about 7 years ago

Image
0

1.2K

tsuzu/coding_challenge_03 repository overview

⁠ウェブアプリケーション課題 課題3

CircleCI Coverage Status Go Report Card Docker Cloud Build Status

⁠Usage

  • With Go 1.12 or higher

    • Prepare PostgreSQL database
    • export POSTGRES_DSN="host=address port=5432 user=your_user password=your_password dbname=your_dbname sslmode=disable"
    • go run github.com/cs3238-tsuzu/coding_challenge_03 --migrate
  • With Docker and docker-compose

    • Download docker-compose.yml and .env
    • Run docker-compose up -d
    • Recommended: before starting, set secure password in POSTGRES_PASSWORD in .env

⁠How to run tests

  • docker-compose -f docker-compose.circleci.yml up -d
  • docker-compose -f docker-compose.circleci.yml exec app bash -c "cd /go/src/coding_challenge_03 && dockerize -wait tcp://db:5432 && go test -v -cover -race -coverprofile=./coverage.out ./..."

⁠License

  • Under the MIT License
  • Copyright (c) 2019 Tsuzu

Tag summary

Content type

Image

Digest

Size

11.1 MB

Last updated

about 7 years ago

docker pull tsuzu/coding_challenge_03