~m15o/riku

Collect responses from HTML forms
Remove ignored files
Add url to repo
Finalizing repo

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~m15o/riku
read/write
git@git.sr.ht:~m15o/riku

You can also use your local clone with git send-email.

#Riku

Collect responses from HTML forms.

#Installation

In order to compile Riku, you need to have:

  • go
  • git
  • make

Here is how to build Riku:

  1. git clone git.sr.ht/~m15o/riku
  2. cd vpub
  3. make

You should now have riku in ./bin/. You can keep it there, or move it to /usr/riku or anywhere else.

#Postgres

Riku needs a Postgres database to run. Install Postgres and create a database:

apt-get install postgresql
su - postgres
createuser -P riku
createdb -O riku riku

#systemd service

Here's an example service file. Create it on /etc/systemd/system/riku.service.

[Install]
WantedBy=multi-user.target

[Unit]
Description=vpub

[Service]
Environment="DATABASE_URL=postgres://riku:riku@localhost/riku?sslmode=disable"
ExecStart=/usr/sbin/riku

The following ENV variable are available:

  • Port defaults to 8888
  • Key defaults to the_coffee_tastes_great. It's the key requested when creating an account.
  • DatabaseURL
  • SessionKey