Skip to content

potch/fireplace

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fireplace

Fireplace is a packaged version of the Firefox Marketplace's front-end.

Installation

Pull submodules :

git submodule update --init

Our dependencies :

- ``lessc``: For stylesheets
- ``nunjucks``: For templates

Installation steps :

brew install node
curl http://npmjs.org/install.sh | sh
npm install lessc -g
npm install nunjucks -g

And make sure that /usr/local/share/npm/bin is in your $PATH, à la:

export PATH=/usr/local/share/npm/bin:$PATH

If you intend to use Flue (the mocked-out API server), you will also need to have Flask and perhaps a few other packages installed. That can be set up by running :

pip install -r flue/requirements.txt

You may wish to run Flue in a virtualenv :

curl -s https://raw.github.com/brainsik/virtualenv-burrito/master/virtualenv-burrito.sh | $SHELL
source ~/.profile
mkvirtualenv --no-site-packages fireplace

Usage

From the terminal, run the following command :

node damper.js

This will start a local server on port 8675.

In addition to an HTTP server, the damper will also run a LESS watcher (to recompile CSS as it's edited) and a template watcher (to recompile templates as they're edited).

Bugs

  • If new templates or less files are added, they will not be recognized until the damper is restarted. Deleted files may also cause problems.

Missing Features

  • numberfmt doesn't work (should probably be integrated with L10n pluralization)
  • WebActivity support has not yet been added.
  • Review replies

About

A clandestine operation to make @krupa happy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.3%
  • Python 1.7%