# README
Server development
Migrations
From project root, run migrations for development on a local database authenticator
with:
cd migrations
sql-migrate up
Models
From project root, regenerate models with:
sqlboiler --wipe --config config/sqlboiler.yml psql
Local server
Build and start a local server on a local database authenticator
with:
go build && ./server -config config/development.json
# Constants
Argon2KeyLen sets the keyLen argument to the argon2 password hasher.
Argon2Memory sets the memory argument to the argon2 password hasher.
Argon2Threads sets the threads argument to the argon2 password hasher.
Argon2Time sets the time argument to the argon2 password hasher.
DebugLevel sets logrus level to debug.
ErrorLevel sets logrus level to error.
FatalLevel sets logrus level to fatal.
InfoLevel sets logrus level to info.
PanicLevel sets logrus level to panic.
PasswordSaltLen is the amount of bytes used for salting passwords.
TraceLevel sets logrus level to trace.
WarnLevel sets logrus level to warn.
# Variables
Default confing.
# Structs
BootstrapUser defines a primary user.
JWTConfig sets static properties of every token produced by this server.
MailConfig for outgoing mail server.
ServerConfig is a collection on config.
TLSConfig for the gRPC server's CertFile and KeyFile.
# Type aliases
LogLevel used for logrus.