Webmaker/Code: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
Line 49: Line 49:
===1. Set up a Webmaker Development Environment===
===1. Set up a Webmaker Development Environment===


Before you can test or make improvements to Webmaker, you need to get it running locally.  This involves setting up your OS to host the Webmaker servers and apps, and installing various development tools you'll need.
Before you can test or make improvements to Webmaker, you need to get it running locally.  This involves setting up your OS to host the Webmaker servers and apps, and installing various development tools you'll need.  We strongly recommend a Unix-like OS, such as Linux or OS X, but it is also possible to use Windows.


TODO:
====Dependencies====
* webmaker-suite
 
* heroku
Webmaker relies on a number of technologies and tools, which must first be installed.  The following list needs to be installed and working before you can run or test Webmaker locally:
* Using a VM
 
* OS specific info for windows/mac/linux
* [http://nodejs.org node.js and npm]
* [http://bower.io/ bower]: after you install npm, you can type `npm install -g bower` (may require admin/sudo rights)
* [http://gruntjs.com/ grunt]: after you install npm, type `npm install -g grunt-cli` (may require admin/sudo rights)
* [http://www.python.org/ python 2.7]
* [http://www.pip-installer.org/en/latest/installing.html pip]
 
A number of node modules we use (e.g., SQLite) also require a working C/C++ toolchain. You should make sure that you have a working build environment for your OS (see the [https://github.com/mozilla/webmaker-suite#os-specific-information section of the Webmaker Suite docs] on this issue). 
 
Optionally, if you plan to work on, or run the MakeAPI locally, you will also require the following:
 
* [http://www.mongodb.org/downloads MongoDB ] (NOTE: there is some discussion about dropping MongoDB altogether, but at the time of writing, this hasn't happened yet)
* [http://www.oracle.com/technetwork/java/javase/downloads/index.html Java]
* [http://www.elasticsearch.org Elastic Search]
 
====Setup Option 1: Webmaker Suite====
 
By far the easiest way to get all of Webmaker set up and installed locally, on any platform, is to use [https://github.com/mozilla/webmaker-suite Webmaker Suite].  This is a set of automation scripts written in node.js by one of our lead developers, and is meant to provide turn-key installation by automatically downloading all the code, and setting default environment variables.
 
Complete instructions are available in the [https://github.com/mozilla/webmaker-suite#webmaker-suite-bootstrapinstallation-script README for Webmaker Suite] on github.
 
====Setup Option 2: Local Native Installation====
 
Installing and running Webmaker on your local OS requires you to firstsetup
 
====Setup Option 3: Using Vagrant (i.e., Ubuntu-based VM)====
 
TODO
 
====Setup Option 4: Heroku====
 
TODO


===2. Find or File a Webmaker Bug===
===2. Find or File a Webmaker Bug===

Revision as of 20:14, 9 October 2013

Mozilla webmaker logo-icon.png Webmaker Development
Owner: David Humphrey Updated: 2013-10-9
Information about developing he Webmaker product.
6332218821_9a8c984055.jpg

NOTE: this page is under active development, and will be changing rapidly over the coming days. Apologies for any chaos you discover at the moment.

Introduction

Webmaker is about empowering everyone to become makers of the web instead of just users. It's a mix of web tools, teaching material, and a social platform for teaching, learning, and sharing what you make. And, it's a lot of fun to use. It's even more fun to develop!

Webmaker is built using modern web technologies including Node.js, HTML5, CSS, and JavaScript (lots of JavaScript!)--many of the same technologies Webmaker teaches. If you know these technologies, or are interested in learning them more deeply, you might be interested in helping us develop Webmaker.

Getting Involved

There are many ways you can get involved in building the Webmaker project. Here are a few ideas:

  • If you know JavaScript, you could help fix bugs or add features to our servers (e.g., the MakeAPI), JS libraries and modules (e.g., popcorn.js or our localization tools), or web tools.
  • If you know HTML/CSS, you could work on our web sites and web tools, for example webmaker.org, Popcorn Maker, Thimble, etc.
  • If you know MySQL/MongoDB/ElasticSearch and are interested in databases and data, you could help us work on the MakeAPI or Login server.
  • If you're interested in Bug Triage, you could help us keep the Webmaker Product on bugzilla neat and tidy.
  • If you know how to speak more than one language, you could work on localization and help us maintain our localization code.
  • If you know how to work on Firefox/FirefoxOS or another Mozilla product/project, you could help us find ways to integrate Webmaker, for example building browser addons.
  • If you know about automation/scripting/packaging/deployment, you could work with developer operations group to help deploy and manage Webmaker.
  • If you're good at finding issues, confirming bugs, or otherwise breaking things, you could help us test Webmaker code on our staging and production servers.
  • If you know how to do UI/UX work, you could join our design and front-end group to design and implement new user-facing aspects of our sites and tools.

These are just a few ideas to get you thinking--there's many ways that someone who wants to work on Webmaker can get involved. If you're passionate and interested in getting started, let us know and we'll try to find something that fits your interests and skills.

Communication

In order to get started on Webmaker code, you need to get involved with our community. Here are some ways to introduce yourself and get help:

  • IRC: The #webmaker channel on moznet is our primary dev channel. If you're new to irc, please see the docs on learning how to use it. NOTE: our development team is spread across the world, with primary activity happening in Toronto, Vancouver, London, Berlin, New York, and San Francisco. If you're in a timezone that doesn't overlap with these, the mailing lists might be a better way to reach out.
  • Mailing Lists: There are two primary lists: webmaker@lists.mozilla.org for general Webmaker communication; and webmaker-dev@mozilla.org for developer communication.
  • Bug Tracker: We use Mozilla's Bugzilla to track our work, see the Webmaker Product in Bugzilla.
  • Blog: Updates about the development of the Webmaker Product go on our Webmaker blog.

Developing Webmaker

Webmaker is a big project, and it can take some time to get set up and contributing. The following is a guide to our workflow, technologies, repositories, etc. Please read this documentation to help you get started, and ask follow-up questions on irc or the webmaker-dev list.

1. Set up a Webmaker Development Environment

Before you can test or make improvements to Webmaker, you need to get it running locally. This involves setting up your OS to host the Webmaker servers and apps, and installing various development tools you'll need. We strongly recommend a Unix-like OS, such as Linux or OS X, but it is also possible to use Windows.

Dependencies

Webmaker relies on a number of technologies and tools, which must first be installed. The following list needs to be installed and working before you can run or test Webmaker locally:

  • node.js and npm
  • bower: after you install npm, you can type `npm install -g bower` (may require admin/sudo rights)
  • grunt: after you install npm, type `npm install -g grunt-cli` (may require admin/sudo rights)
  • python 2.7
  • pip

A number of node modules we use (e.g., SQLite) also require a working C/C++ toolchain. You should make sure that you have a working build environment for your OS (see the section of the Webmaker Suite docs on this issue).

Optionally, if you plan to work on, or run the MakeAPI locally, you will also require the following:

  • MongoDB (NOTE: there is some discussion about dropping MongoDB altogether, but at the time of writing, this hasn't happened yet)
  • Java
  • Elastic Search

Setup Option 1: Webmaker Suite

By far the easiest way to get all of Webmaker set up and installed locally, on any platform, is to use Webmaker Suite. This is a set of automation scripts written in node.js by one of our lead developers, and is meant to provide turn-key installation by automatically downloading all the code, and setting default environment variables.

Complete instructions are available in the README for Webmaker Suite on github.

Setup Option 2: Local Native Installation

Installing and running Webmaker on your local OS requires you to firstsetup

Setup Option 3: Using Vagrant (i.e., Ubuntu-based VM)

TODO

Setup Option 4: Heroku

TODO

2. Find or File a Webmaker Bug

All the work we do is tracked in Bugzilla, and knowing how to find exiting bugs and how to file new bugs is important.

TODO:

  • using Bugzilla
  • Webmaker Product tour (components, what's in each, who owns them)
  • Useful bug queries to find things to work on
  • good-first-bug, student-project, mentored-bug?

3. Understand Webmaker Code

The Webmaker code is spread across a large number of repositories, modules, libraries, apps, and web sites. Trying to locate the code for a particular part of Webmaker can be a challenge. The following is a tour through our code, and who to ask for more information:

TODO

  • list of all our git repos, owners/peers
  • high-level diagram/description of how the pieces of Webmaker fit together

4. Learn the Webmaker Development Workflow

Every project has its own way of working, and we're no exception. This guide will help you navigate our development workflow so you can be successful as a new contributor.

TODO:

  • learning/using git
  • bugzilla and github
  • code review
  • pull requests, inline comments
  • rebasing patches when they are ready to land
  • flags/whiteboard things to know about (e.g., l10n string changes)
  • getting r+'ed patches landed
  • tagging
  • pushing to staging/production

TODO -- old stuff below to integrate....

Want to report a bug?

Reporting a bug goes in Github or Lighthouse, depending on the project. Links follow:

   Thimble - https://github.com/mozilla/webpagemaker/issues
   Open Badges (OBI) - https://github.com/mozilla/openbadges/issues
   Open Badger (OBr) - https://github.com/mozilla/openbadger/issues
   Collusion - https://github.com/mozilla/collusion/issues
   Webmaker.org:https://mozila-webmakers.lighthouseapp.com/dashboard
   webmaker.org (non-events) - https://mozila-webmakers.lighthouseapp.com/projects/95184-webmakers-phase-2/overview
   webmaker.org/events - https://mozila-webmakers.lighthouseapp.com/projects/94308-webmakers/overview
   Popcorn Maker:https://webmademovies.lighthouseapp.com/projects/65733-popcorn-maker/overview
   Popcorn.js:https://webmademovies.lighthouseapp.com/projects/63272-popcornjs/overview

Software

"Apps that teach." Mozilla Webmaker tools like Popcorn, Thimble and X-Ray Goggles help users a) make something amazing on the web, and b) bake in learning as they go. They're designed to teach digital literacy and web mechanics like HTML, CSS and Javascript through making and doing. Here's how you can get involved:

Popcorn

Mozilla Popcorn makes video pop. The Popcorn app and Javascript library make it easy for end-users and developers to make videos interactive, pulling in content from the rest of the web. More info here.

More Info

Popcorn.js & Popcorn Maker

Code Repo

Github

Issue Tracking

Lighthouse Popcorn

Primary Language/Framework JS
IRC irc.mozilla.org #popcorn
Mailing list

Popcorn Community

Dev Cycles Popcorn Maker: Monthly; Popcorn.js: bi-monthly
More on how to contribute

Air Mozilla Presentation

Thimble

Thimble makes it ridiculously simple to create and share your own web pages: Write and edit HTML and CSS right in your browser, instantly preview your work and then host and share finished projects with a single click. More info here.

More Info

Thimble wiki

Code Repo

Github

Dev site

Thimble dev

Issue Tracking

Lighthouse Popcorn

Primary Language/Framework Python on the server, JS on the client
IRC irc.mozilla.org #MoFoDev, #thimble
Mailing list

Thimble Community

Dev Cycles TBD

Open Badges

Learning today happens everywhere. But it's often difficult to get recognition for skills and achievements that happen online or out of school. Mozilla Open Badges helps solve that problem, making it easy for any organization to issue, manage and display digital badges across the web. More info here.

More Info

Badges wiki

Code Repo

Github

Issue Tracking

Github

Primary Language/Framework Node.js
IRC irc.mozilla.org #badges, #MoFoDev
Mailing list

Badges community

Dev Cycles Bi-monthly

X-Ray Goggles

The X-Ray Goggles make it easy to see and mess around with the building blocks that make up the web. Activate the Goggles to inspect the code behind any web page, from the New York Times to your own blog. Then remix elements with a single click, swapping in your own text, images and more. More info here.

More Info

X-Ray Goggles

Code Repo

Github

Issue Tracking

Github

Primary Language/Framework JS
IRC irc.mozilla.org #MoFoDev
Mailing list

MoFoDev List