Categorygithub.com/miku/dvmweb
modulepackage
0.0.0-20240315101319-d6238043b4a4
Repository: https://github.com/miku/dvmweb.git
Documentation: pkg.go.dev

# README

dvmweb

Web application for Die Virtuelle Mittagsfrau (Coding da Vinci 2018). Archived: http://web.archive.org/web/20180624045907/https://mittagsfrau.de/

We won a prize!

Out of compentition. Thanks!

Static files

 $ tree -shd static
static
├── [4.0K]  cache
├── [4.0K]  css
├── [4.0K]  images
│   ├── [4.0K]  artifacts
│   ├── [4.0K]  landscapes
│   └── [4.0K]  people
└── [276K]  videos

7 directories

Images are categorized (we need three), videos are named dvm-010203, where 01 names an artifact, 02 names a landscape, 03 a picture of people.

Start server

$ make
go build -o dvmweb cmd/dvmweb/main.go

$ ./dvmweb
2019/02/21 13:11:16 starting server at http://0.0.0.0:3000
...

More on the project

# Packages

No description provided by the author

# Functions

New create a new web app given a data source and some static directories.

# Structs

App configuration and data access layer.
CategorizedImage belongs to a category, path records the absolute path.
Handler implements HTTP request for reading, writing and rendering stories.
Inventory make images and videos accessible in various ways.
Story
Story describes a minimal story.