Matt Baer ac6eff5015 | 6 anos atrás | |
---|---|---|
keys | 8 anos atrás | |
less | 6 anos atrás | |
main | 8 anos atrás | |
static | 6 anos atrás | |
templates | 6 anos atrás | |
.gitignore | 7 anos atrás | |
CONTRIBUTING.md | 6 anos atrás | |
INSTALL | 7 anos atrás | |
README.md | 6 anos atrás | |
app.go | 8 anos atrás | |
build.sh | 7 anos atrás | |
config.go | 6 anos atrás | |
construction.go | 6 anos atrás | |
database.go | 8 anos atrás | |
filter.go | 6 anos atrás | |
house.go | 8 anos atrás | |
init.sql | 8 anos atrás | |
keys.sh | 8 anos atrás | |
makefile | 6 anos atrás | |
models.go | 6 anos atrás | |
session.go | 6 anos atrás | |
templates.go | 8 anos atrás | |
twitter.go | 8 anos atrás |
Publish HTML quickly.
HTMLhouse uses ACE editor for modifying HTML and shows a live preview of what you’ve created in an iframe
alongside the source code.
No user signup is required -- authorization to modify an individual published page is saved on the creator’s device in local storage as an ID and JWT generated by the server.
It is also available as a Chrome extension and browsable on Android.
go get -d
to get necessary dependenciesmake install
to install LESS compiler locally and generate the CSS filesinit.sql
to set up the database./keys.sh prod
to create a new keypairgo run main/main.go
in the top level directory, optionally by creating a simple run script#!/bin/bash
DB_USER=dbuser DB_PASSWORD=pass DB_DB=htmlhouse PRIVATE_KEY=keys/dev PUBLIC_KEY=keys/dev.pub go run main/main.go
Variable | What it is | Default value |
---|---|---|
DB_USER |
Database user | None. Required |
DB_PASSWORD |
Database password | None. Required |
DB_DB |
Database name | None. Required |
DB_HOST |
Database host | localhost |
PRIVATE_KEY |
Generated private key | None. Required |
PUBLIC_KEY |
Generated public key | None. Required |
PORT |
Port to run app on | 8080 |
STATIC_DIR |
Relative dir where static files are stored | static |
AUTO_APPROVE |
Automatically approves public posts | false |
PREVIEWS_HOST |
Fully-qualified URL (without trailing slash) of screenshot server | None. |
ADMIN_PASS |
Password to perform admin functions via API | uhoh |
BROWSE_ITEMS |
Number of items to show on Browse page | 10 |
BLACKLIST_TERMS |
Comma-separated list of terms to prevent a post from being made public | None. |
TWITTER_KEY |
Twitter consumer key | notreal |
TWITTER_SECRET |
Twitter consumer secret | notreal |
TWITTER_TOKEN |
Twitter access token of the posting Twitter account | notreal |
TWITTER_TOKEN_SECRET |
Twitter access token secret of the posting Twitter account | notreal |
Changing CSS. Run make
after all changes to update the stylesheets.
When you don’t need to reload the app. When you make changes to any files in static/
you can simply refresh the resource without restarting the app.
When to reload the app. If you change any of the templates in templates/
or any .go
file, you’ll need to re-run the app.