mirror of https://gitlab.com/ngerakines/tavern.git
1b9162828e | ||
---|---|---|
asset | ||
avatar | ||
common | ||
config | ||
errors | ||
fed | ||
g | ||
job | ||
migrations | ||
public | ||
start | ||
storage | ||
templates | ||
translations/en | ||
web | ||
.gitignore | ||
.gitlab-ci.yml | ||
CONTRIBUTING.md | ||
Dockerfile | ||
FEDERATION.md | ||
LICENSE | ||
README.md | ||
go.mod | ||
go.sum | ||
main.go |
README.md
tavern
A minimalistic Activity Pub server. Think mastodon, but smaller and with fewer features.
This project is in active development and should not be used in production.
Build
$ go build -o tavern main.go
Commands
NAME:
tavern - The tavern application.
USAGE:
main [global options] command [command options] [arguments...]
COMMANDS:
init Initialize the server
server Run the web server.
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help (default: false)
--version, -v print the version (default: false)
COPYRIGHT:
(c) 2020 Nick Gerakines
Init
NAME:
main init - Initialize the server
USAGE:
main init [command options] [arguments...]
OPTIONS:
--environment value Set the environment the application is running in. (default: "development") [$ENVIRONMENT]
--listen value Configure the server to listen to this interface. (default: "0.0.0.0:8000") [$LISTEN]
--domain value Set the website domain. (default: "tavern.ngrok.io") [$DOMAIN]
--database value Select the database to connect to. (default: "host=localhost port=5432 user=postgres dbname=tavern password=password sslmode=disable") [$DATABASE]
--translations value The path translations are located (default: "translations") [$TRANSLATIONS]
--admin-email value The email address of the admin user
--admin-password value The password of the admin user
--admin-locale value The locale of the admin user (default: "en")
--admin-name value The name of the admin user
--admin-displayname value The display name of the admin user
--admin-about value The 'about me' of the admin user
--help, -h show help (default: false)
Server
NAME:
main server - Run the web server.
USAGE:
main server [command options] [arguments...]
OPTIONS:
--environment value Set the environment the application is running in. (default: "development") [$ENVIRONMENT]
--listen value Configure the server to listen to this interface. (default: "0.0.0.0:8000") [$LISTEN]
--domain value Set the website domain. (default: "tavern.ngrok.io") [$DOMAIN]
--database value Select the database to connect to. (default: "host=localhost port=5432 user=postgres dbname=tavern password=password sslmode=disable") [$DATABASE]
--translations value The path translations are located (default: "translations") [$TRANSLATIONS]
--secret value Set the server secret [$SECRET]
--admin-name value The name of the admin user (default: "nick") [$ADMIN_NAME]
--help, -h show help (default: false)