2022-07-04 20:08:00 +02:00
2022-07-04 20:08:00 +02:00
2022-06-30 02:35:37 +02:00
2022-07-04 13:01:41 +02:00
2022-07-01 01:43:11 +02:00
2022-07-01 01:43:11 +02:00
2022-06-30 15:36:37 +02:00

PHC Storage

Web server per gestire la nuova macchina di backup e storage.

Architecture

  • _frontend/

    This is a Vite project for building all the static pages used by this app.

  • database/

    Module with a Database interface and two implementation: memDB is an in-memory database for testing purposes while sqliteDB is a wrapper for working with an SQLite database.

  • routes/

    Various functions for configuring all the server routes.

Usage

First install the required npm packages

$ cd _frontend
_frontend/ $ npm install

Development

# Development
$ MODE=dev go run -v .

# Development with watcher
$ fd -e go | MODE=dev entr -r go run -v .

Production

First build the _frontend/dist folder using

$ cd _frontend
$ npm run build

and then

# Production
$ go run -v .
S
Description
Web server per gestire la nuova macchina di backup e storage.
Readme
148 KiB
Languages
JavaScript 49.8%
Go 29.3%
SCSS 17.4%
Shell 1.6%
HTML 1.1%
Other 0.8%