0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00
Trevor Buckner 8e1951ba67 Access google files with Service Account
Using API key is triggering "automation" warnings from Google
2020-12-25 15:15:51 -05:00
2020-05-19 01:36:31 -04:00
2018-08-22 01:44:48 -07:00
2018-04-09 00:12:56 -04:00
2020-03-24 10:01:28 -04:00
2016-12-25 21:44:27 -05:00
2020-04-21 22:46:42 -04:00

The Homebrewery

The Homebrewery is a tool for making authentic looking D&D content using Markdown. It is distributed under the terms of the MIT License.

Quick Start

The easiest way to get started using the Homebrewery is to use it on our website. The code is open source, so feel free to clone it, tinker with it. If you want to make changes to the code, you can run your own local version for testing by following the installation instructions below.

Installation

First, install three programs that the Homebrewery requires to run and retrieve updates

  1. install node

  2. install mongodb (Community version)

    For easiest installation, follow these steps:

    1. In the installer, uncheck the option to run as a service
    2. You can install MongoDB Compass if you want a GUI to view your database documents
    3. Go to the C drive and create a folder called "data"
    4. Inside the "data" folder, create a new folder called "db"
    5. Open a command prompt or other terminal and navigate to your mongodb install folder (c:program files\mongo\server\4.4\bin)
    6. In the command prompt, run "mongod", which will start up your local database server
    7. While MongoD is running, open a second command prompt and navigate to the mongodb install folder
    8. In the second command prompt, run "mongo", which allows you to edit the database
    9. Type use homebrewery to create the homebrewery database. You should see switched to db homebrewery
    10. Type db.brews.insert({"title":"test"}) to create a blank document. You should see WriteResult({ "nInserted" : 1 })
    11. Search in Windows for "Advanced system settings" and open it
    12. Click "Environment variables", find the "path" variable, and double-click to open it
    13. Click "New" and paste in the path to the mongodb "bin" folder
    14. Click "OK", "OK", "OK" to close all the windows
  3. install git (select the option that allows Git to run from the command prompt)

Second, set up the MongoDB database

Third, download a copy of the repository. Once you have git you can do so with

git clone https://github.com/naturalcrit/homebrewery.git

Fourth, you will need to add the environment variable NODE_ENV = local to allow the project to run locally.

You can set this temporarily in your shell of choice:

  • Windows Powershell: $env:NODE_ENV="local"
  • Windows CMD: set NODE_ENV=local
  • Linux / OSX: export NODE_ENV=local

Fifth, you will need to install the Node dependencies, compile the app, and run it using the two commands:

  1. npm install
  2. npm start

You should now be able to go to http://localhost:8000 in your browser and use the Homebrewery offline.

Running the application via Docker

Please see the docs here: README.DOCKER.md

Standalone PHB Stylesheet

If you just want the stylesheet that is generated to make pages look like they are from the Player's Handbook, you will find it in the phb.standalone.css file.

If you are developing locally and would like to generate your own, follow the above steps and then run npm run phb.

Issues, Suggestions, and Bugs

If you run into any issues using The Homebrewery or have suggestions for improvement, please submit an issue on GitHub. You can also get help for issues on the subreddit r/homebrewery

Changelog

You can check out the changelog.

License

This project is licensed under the MIT license. Which means you are free to use The Homebrewery in any way that you want, except for claiming that you made it yourself.

If you wish to sell or in some way gain profit for what's created on this site, it's your responsibility to ensure you have the proper licenses/rights for any images or resources used.

Description
Create authentic looking D&D homebrews using only markdown
Readme 481 MiB
Languages
JavaScript 71.1%
Less 27.7%
Shell 0.6%
CSS 0.4%
PowerShell 0.2%