0.0.14 • Published 4 months ago

@giesf/se_19 v0.0.14

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

blog19

A minimal blogging system written in typescript, powered by bun.

! This software was developed to pass assessments at the CODE University of Applied Sciences in Berlin and is currently not used in any production environments. You might want to proceed with caution. !

Usage

The best way to use blog19 is through the bun package runner.

First install bun

curl -fsSL https://bun.sh/install | bash

Create a directory to run your blog in

mkdir my-blog && cd my-blog

Run blog19

bunx blog19 serve

blog19 will automatically generate a sqlite database and a static directory.

The default admin credentials are admin:admin

Configuration

Blog 19 can be configured through command arguments, environment variables and configuration files.

To easily create a configuration file you can run the configuration wizard

bunx blog19 config

The names of the command arguments are the same as the names of the keys in the config.toml.

blog19 prioritises configuration based on where it is set. Command arguments overwrite everything, ENV varaibles overwrite the config file, and the config file overwrites defaults.

Configuration variables

argument/toml keyENV_KEY descriptiondefault
configFileB19_SQLITE_FILEPath of sqlite file to use for storing blog posts etc.EMPTY
portB19_PORTport to listen for http requests on3000
pageTitleB19_PAGE_TITLEtitle of the blogBlog
adminUserB19_ADMIN_USERusername for admin accountadmin
adminPasswordHashB19_ADMIN_PASSWORD_HASHargon2 hash of password for admin accountadmin
sqliteFileB19_SQLITE_FILEPath of sqlite file to use for storing blog posts etc.data.sqlite
avatarUrlB19_AVATAR_URLUrl or path to a profile image to be displayed on the blog (optional)/static/default-avatar.jpg
githubUrlB19_GITHUB_URLUrl of your github profile (optional)EMPTY

Advanced usage

Styles

You can edit static/base.css to change the style of blog19.

If you fuck up you can alwas revoke your changes by running bunx blog19 overwrite-css

HTTPS

blog19 is designed to run behind some kind of proxy that terminates HTTPS. Check out Caddy or soemthing similar.

Version safety

It might make sense to explicitly define what version of blog19 you want to use by running blog19 like bunx blog10@<verion> ...

0.0.10

4 months ago

0.0.11

4 months ago

0.0.12

4 months ago

0.0.13

4 months ago

0.0.14

4 months ago

0.0.9

4 months ago

0.0.8

4 months ago

0.0.5

4 months ago

0.0.4

4 months ago

0.0.7

4 months ago

0.0.6

4 months ago

0.0.3

4 months ago

0.0.2

4 months ago

0.0.1

4 months ago