blogP

command module
v0.0.0-...-637df6b Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: MIT Imports: 4 Imported by: 0

README

blogP

Simple blog app RESTful API

built with golang gogen gin-gonic gorm casbin postgresql redis

documentation/openapi3

How to install?

git clone http://gitub.com/raismaulana/blogP
cd blogP
go mod tidy
go run main.go usingdb

Or using docker

git clone http://gitub.com/raismaulana/blogP
cd blogP
go mod tidy
go mod vendor
go env -w CGO_ENABLED=0
go build -o build/package/bin3 .
go env -w CGO_ENABLED=1
docker network create blogp-network
docker volume create blogp_volume
docker build -t blogp:latest .
docker run --name blogp-postgres -v blogp_volume:/postgres --network blogp-network -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=blog -d postgres:latest
docker run --name blogp-redis -id -p 6379:6379 --network blogp-network redis:latest redis-server --requirepass "redis"
docker run --name blogp -p 8080:8080 --network blogp-network blogp:latest

NB: copy the config.yaml.example to config.yaml and edit the value based on your environment

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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