calendar

package module
v0.0.0-...-2d44628 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: MIT Imports: 13 Imported by: 0

README

Simple calendar app

Local development

  • make setup - Set up the development sandbox.
  • make dev - Start the development sandbox.
  • make stop - Stop the development sandbox.

The calendar application can be visited on https://calendar.localhost.

Production installation

The Docker image is published at https://github.com/mgnsk/calendar/pkgs/container/calendar.

Clone the repository

As root:

  • mkdir /opt/mgnsk/calendar
  • cd /opt/mgnsk/calendar
  • git clone https://github.com/mgnsk/calendar.git .
Create the .env file with your public domain name
HOSTNAME="my-domain-name.com"
Install and enable the service

As root:

make install

This will:

  • Create a Docker volume for the database if not already exists.
  • Symlink and reload the systemd service file.
  • Enable and start the service.

Documentation

Index

Constants

View Source
const (
	KeyHTTPCode = "http_code"
	Stack       = "stack"
)

Keys for error data in errors.

Variables

View Source
var (
	PreconditionFailed = wreck.New("precondition_failed").With(KeyHTTPCode, http.StatusPreconditionFailed)
	InvalidValue       = wreck.New("invalid_value").With(KeyHTTPCode, http.StatusBadRequest)
	AlreadyExists      = wreck.New("already_exists").With(KeyHTTPCode, http.StatusConflict)
	NotFound           = wreck.New("not_found").With(KeyHTTPCode, http.StatusNotFound)
	Timeout            = wreck.New("timeout").With(KeyHTTPCode, http.StatusRequestTimeout)
	Forbidden          = wreck.New("forbidden").With(KeyHTTPCode, http.StatusForbidden)

	Internal = wreck.New("internal").With(KeyHTTPCode, http.StatusInternalServerError)
)

Base errors.

Functions

func GetAssetPath

func GetAssetPath(name string) string

GetAssetPath returns the asset path.

func MigrateDown

func MigrateDown(db *sql.DB) error

MigrateDown runs the down migrations for database.

func MigrateUp

func MigrateUp(db *sql.DB) error

MigrateUp runs the up migrations for database.

func RegisterAssetsHandler

func RegisterAssetsHandler(e *echo.Echo)

RegisterAssetsHandler registers the static assets echo handler.

Types

This section is empty.

Directories

Path Synopsis
cmd
calendar command
pkg

Jump to

Keyboard shortcuts

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