# NAWP (NAWP Ain't WordPress) -- Minimal Blogging Engine in Chicken Scheme
This is very much a work in progress, and not everything is guaranteed
to work just now.
NAWP stores content in an sqlite database. It is dynamic, not a static
site generator. It is supposed to run as a CGI script.
Here is a list of the external Scheme libraries ("eggs" in Chicken Scheme parlance) that NAWP needs:
I had some problems installing crypt locally; I need to report that upstream.
You'll also need a CGI-capable web server. I use lighttpd with mod_cgi
Once the dependencies are installed, run:
Copy the resulting binary to your cgi-bin directory.
Next, make the database:
```sqlite3 /var/lib/nawp/blog.db < schema.sql```
Make it readable and writable by the user the CGI script will run as.
Add a new user.
Run the script as the owner of the DB, with the adduser argument.
For instance, to add a user named `chris`:
doas -u dbowner /path/to/nawp adduser chris 'Chris Brannon'
You'll be prompted for the password. Unfortunately it'll echo to stdout
for now. Fixing that is going to require a little yak-shaving.
Finally, you'll want to do some web server configuration. TODO.
To contribute, you can push to branches in this repository that have names
starting with `patch_`. I borrowed this idea from Tim Vaughan, author
of `elpher` et al. The difference is that Tim Vaughan uses the `git://`
protocol, where I use `https://`.
I plan on adding an API. It will probably be the metaweblog XML-RPC
API used by WordPress, or a slimmed-down version thereof. There are
command-line tools for blogging with WordPress, and it would be nice to
be able to use those with NAWP.
I may add Gemini support. I haven't quite decided how I feel about Gemini.
At first blush, it seems quite compelling and worth the effort.
I may add support for alternative input formats like asciidoc.
More likely, I'd consider replacing markdown with asciidoc and sticking
to one single input format.
Markdown is useful, but it is also poorly specified -- excepting CommonMark -- and underpowered.
Idle speculation: I wonder how hard it would be to add SXML as an output format to pandoc...