coding_challenge_03

command module
v0.0.0-...-fede792 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: MIT Imports: 12 Imported by: 0

README

ウェブアプリケーション課題 課題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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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