Local Path | Local URL | External URL | Description |
---|---|---|---|
./public/index.html |
http://localhost:8080/ | https://games.mozilla.org/ | Redirects to /gdc/ for now |
./public/gdc/index.html |
http://localhost:8080/gdc/ | https://games.mozilla.org/gdc/ | Conference mini site for Mozilla's presence at GDC 2015 |
To install the Node dependencies:
npm install
All of the web content is static (see the https://github.com/mozilla/moz-games/tree/master/public directory).
To serve the site from the simple server:
npm run dev
Then launch the site from your favourite browser:
If you wish to serve the site from a different port:
PORT=8000 npm run dev
To simulate the production environment but with file watchers to automatically recompile everything:
npm run prod:watch
TODO: Eventually use something simple like budo for local development to get easy file watching, live reloading, etc.
In production, the server is run like so:
npm start
Alternatively:
npm run prod
To run the server through Heroku's foreman:
foreman start web
All webpage content is localised using webL10n, a client-side library for internationalisation (i18n) / localisation (l10n).
If you would like to submit new translations:
-
Ensure a section exists for the locale in
l10n/locales.ini
, followed by animport
rule. For example:[fr] @import url(data.fr.properties)
-
Open the corresponding
.properties
file, and fill in all the translations. -
Open a pull request.