medzoner-go

module
v0.0.0-...-57fdbbf Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0

README

Medzoner.com

Build Status Coverage Status License Go report

Short Description

My website https://www.medzoner.com rewrite in golang from php (https://github.com/Medzoner/medzoner.com)

Configuration

Configuration can be specified in .env or exported as environment variable:

Name Value
ENV string
DEBUG bool
OPTIONS []string{} (option1,option2....)
DATABASE_DSN string (ex: root:changeme@tcp(database:3366))
DATABASE_NAME string
DATABASE_DRIVER string
MAILER_USER string
MAILER_PASSWORD string

Build

go build -o bin/app ./cmd/app/main.go
go build -o bin/migrate ./cmd/migrate.go

Run

go run ./cmd/app/main.go
go run ./cmd/migrate.go

run

Debug

go install github.com/go-delve/delve/cmd/dlv@master
dlv debug --headless --listen=:4000 --only-same-user=false --api-version=2 --accept-multiclient --log --log-output=rpc ./cmd/app/main.go

run

Test

UnitTest
go test -v -cover -coverpkg=./... ./pkg/...

run

BehaviorTest

Database (mysql) must be up and configured before run.

go test godog_test.go

run

Developed & Maintained by

Mehdi Youb

License

License

Jump to

Keyboard shortcuts

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