0.4.0 • Published 7 years ago

rpg-helper v0.4.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

RPG Helper

Build Status npm version

Dungeons & Dragons Session Helper

Important It is a simple side project published only for sharing with friends. Do NOT expect any support or working system until at least v1.0.0 hits.

Requirements

  • Node ^7.10.0
  • openssl to generate ssl certificate

CLI

$ rpg-helper -h
Usage: rpg-helper <command> [options]

Commands:
  start  start RPG Helper

start
  --ssl-dir, --ssl      directory with ssl certificate                                                           [string]
  --database-dir, --db  directory for storing database files                                                     [string]
  --secret, -s          long secret string for encryption purposes                                    [string] [required]
  --port, -p            port on which server will be available                                    [number] [default: 443]

Options:
  --version, -v  Show version number                                                                            [boolean]
  --help, -h     Show help                                                                                      [boolean]

Examples:
  rpg-helper start --db=./path/to/dir --ssl=./path/to/dir       start RPG Helper storing database in the given directory,
  --secret=SECRET-KEY                                           with provided certificates

Copyright © 2017 Mateusz Kasprzak

Developer

  • cp .env-sample .env
  • Generate SSL Certifacte
    • cd ./sslcert
    • openssl genrsa 1024 > private.key
    • openssl req -new -key private.key -out cert.csr
    • openssl x509 -req -in cert.csr -signkey private.key -out certificate.pem

Publishing new version

  • yarn full-publish