aboutsummaryrefslogtreecommitdiff
bom.el

bom.el

Introduction

This is a PoC experiment, demonstrating the power of emacs-web-server.

The goal is not to implement something fancy, but:

  1. Banish Javascript
  2. Write an emacs package, get a webapp for free

The first item is quite achievable. Regarding the second, it would be ideal to have a package that transforms emacs packages to webapps. This package showcases a prototype of such a transformer, which needs to separated.

Usage

As an emacs package

There are two entry points:

  • M-x bom: opens a "landing page" as an org buffer
  • M-x bom-state: prompt for a state, then displays the weather forecast for that state in an org buffer

Serve web pages from current emacs instance

Make sure emacs-web-server is available. It can be installed from the GNU ELPA:

(package-install 'web-server)

Require and start the server:

(require 'bom)
(bom-start)

The weather forecast is available at http://localhost:9000.

Serve web pages from the command line

Run make serve.

Contact and Copyright

bom.el is maintained by Yuchen Pei <id@ypei.org> and covered by GNU AGPLv3+. You may find the license text in a file named COPYING.agpl3 in the project tree.