clog
Blog hacked in C using kore.io, PostgreSQL, Markdown, & Mermaid.
Running
docker compose up
Build and run locally
Install kore & then:
make
Make sure a database is up & then
./run-local.sh
Notes
To run locally modify conf/clog.conf
, comment out root /var/chroot/
and uncomment
the skip chroot
section:
privsep worker {
runas clog
# root /var/chroot/
skip chroot
}
Maybe disable seccomp_tracing
in conf/clog.conf
if running into problems:
seccomp_tracing no
# seccomp_tracing yes
Bootstrapping the database
Use psql
and load db/db.sql
for models,
db/data.sql
for some example data.
TODO
- Pagination.
- Delete entries.
- Fix
tests.py
to work after refactor. - Have
tests.py
load and drop database. - Get rid of
requests
dependency intests.py
. - Fix query parsing for search.
- Add preview functionality to edit form.
Using C in 2024 is dangerous?
I guess it depends: