Publish HTML quickly. https://html.house
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
Matt Baer ac07e3dfee Add Browse page vor 8 Jahren
keys Add backend ability to save/get a house vor 8 Jahren
main Move import path to writeas/htmlhouse vor 8 Jahren
static Add Browse page vor 8 Jahren
templates Add Browse page vor 8 Jahren
.gitignore Add initial site with editor vor 8 Jahren
README.md Add Slack badge vor 8 Jahren
app.go Add Browse page vor 8 Jahren
config.go Add backend ability to save/get a house vor 8 Jahren
construction.go Add Browse page vor 8 Jahren
database.go Add backend ability to save/get a house vor 8 Jahren
house.go Add backend ability to save/get a house vor 8 Jahren
init.sql Count page views vor 8 Jahren
keys.sh Prevent running keys.sh with no params vor 8 Jahren
makefile Add initial site with editor vor 8 Jahren
models.go Add Browse page vor 8 Jahren
session.go Add backend ability to save/get a house vor 8 Jahren
templates.go Add Browse page vor 8 Jahren

README.md

HTMLhouse

Publish HTML quickly.

HTMLhouse screenshot

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.

Public Slack discussion

Development

Requirements

  • Go
  • Node.js
  • MySQL

Setup

  1. Clone the repo
  2. Run go get -d to get necessary dependencies
  3. Run make install to install LESS compiler locally and generate the CSS files
  4. Run the queries in init.sql to set up the database
  5. Optional. Run ./keys.sh prod to create a new keypair

Running the server

  • Run go 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

Environment Variables

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
PORT Port to run app on 8080
STATIC_DIR Relative dir where static files are stored static

Notes

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.