GithubHelp home page GithubHelp logo

deathping1994 / moz-games Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mozilla/games.mozilla.org

1.0 3.0 0.0 29.7 MB

Mozilla Games site

Home Page: https://games.mozilla.org/

License: MIT License

HTML 23.69% CSS 18.13% JavaScript 58.17%

moz-games's Introduction

Mozilla Games

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

Installation

To install the Node dependencies:

npm install

Development

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:

http://localhost:8080/

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.

Deployment

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

Localisation

All webpage content is localised using webL10n, a client-side library for internationalisation (i18n) / localisation (l10n).

If you would like to submit new translations:

  1. Ensure a section exists for the locale in l10n/locales.ini, followed by an import rule. For example:

    [fr]
    @import url(data.fr.properties)
  2. Open the corresponding .properties file, and fill in all the translations.

  3. Open a pull request.

Contributing

Contributions are very welcome!

moz-games's People

Contributors

cvan avatar

Watchers

James Cloos avatar Gaurav Shukla avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.