Skip to content
The heartbeat of persona.org, powered by node.js http://persona.org
JavaScript Shell
Find file
Pull request Compare This branch is 56 commits ahead of jlongster:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
lib
public
routes
test
views
.gitignore
.gitmodules
.travis.yml
Makefile
README.md
app.js
local.json-dist
package.json
settings.js

README.md

Persona.org

Installation instructions

Clone the repository

git clone --recursive git://github.com/mozilla/persona.org.git

curl http://npmjs.org/install.sh | sh

Install node by using brew or through the website http://nodejs.org/#download

cd persona.org

cp settings.js-dist settings.js

npm install

cd persona.org/public/javascripts/lib/shipyard

npm install

L10n extraction/merge

mkdir -p locale/templates/LC_MESSAGES

touch locale/templates/LC_MESSAGES/messages.pot

touch locale/templates/LC_MESSAGES/client.pot

export PATH=$PATH:node_modules/i18n-abide/bin

./bin/extract_po.sh

./bin/update_languages.sh

Merge and compile

merge_po.sh ./locale ;; There's no actual client-side translations yet, so it will probably through errors about trying to merge in client.po

compile_mo.sh locale/

mkdir public/javascripts/i18n

./bin/compile_json.sh locale public/javascripts/i18n/ ;; Only do this if you need client-side l10n

(Note: These instructions are from https://github.com/mozilla/i18n-abide/blob/master/README.md)

We copied the client-side translation steps from i18n-abide, but had to tweak it a little to work. Eventually we should converge on a set of scripts and share them. Mainly, I changed the path to po2json in compile_json.sh, I think that's the only tweak.

NODE_ENV=development node app.js

When deploying, this is important:

NODE_ENV=production node app.js

Run the Tests

make test

Building with Shipyard

To minify the JavaScript using Shipyard:

make shipyard

Something went wrong with that request. Please try again.