fullstackgo

package module
v0.0.0-...-63eaebe Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: MIT Imports: 37 Imported by: 0

README

FullStack Go

Run

Copy .env.example to .env and update it.

For the first time run:

make dep

To run application:

make run

Test

make test

to debug playwright tests set PWDEBUG=1

Documentation

Index

Constants

View Source
const (
	HTTPServerTimeOut = 60 * time.Second
	ShutdownTimeout   = 5 * time.Second
)

Variables

This section is empty.

Functions

func InitAuthorizationService

func InitAuthorizationService(ctx context.Context, db *sql.DB) (*authorization.Service, error)

func InitBlogService

func InitBlogService(
	authzSvc *authorization.Service,
	postRepo blog.PostRepository,
	commentRepo blog.CommentRepository,
) blog.Service

func InitDatabase

func InitDatabase(ctx context.Context, dsn string) (*sql.DB, error)

func InitMediaService

func InitMediaService(
	authzSvc *authorization.Service,
	mediaItemRepo media.ItemRepository,
	mediaBlobBucket *blob.Bucket,
) media.Service

func RandomHex

func RandomHex(n int) string

func Run

func Run(ctx context.Context) (err error)

Types

This section is empty.

Directories

Path Synopsis
cmd
fullstackgo command
db

Jump to

Keyboard shortcuts

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