miblog

command module
v0.0.0-...-042b7a9 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 1 Imported by: 0

README

MiBlog

Simple Blog created using Golang Programming

Run Application
# running database with docker-compose
docker-compose up -d --build

# run application
go run main.go runserver
# or
make runserver
Docs
# Install Swaggo
go install github.com/swaggo/swag/cmd/swag@latest

# Generate Docs
swag init --parseDependency --parseInternal
# or
make docs
Migration
# migrate
go run main.go migrate -e up
# or
make migrate

# Others
go run main.go migrate -e up 0001
go run main.go migrate -e down
go run main.go migrate -e down 0001
go run main.go migrate -e undo


# makemigrations
go run main.go makemigrations -f "create_new_migration_file"
# or
make makemigrations name="create_new_migration_file"
Contributors

Agung Yuliyanto
💻

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
dto
cmd
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.
pkg

Jump to

Keyboard shortcuts

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