A stream of assets from peers across the Mozilla Network
Перейти к файлу
Mavis Ou e5f5b226de Added dev deps badge 2017-07-04 17:06:05 -07:00
assets Added an optimize task to optimize image assets (#583) 2017-06-22 15:57:20 -07:00
components Enable Travis and Appveyor CI (#584) 2017-06-22 10:04:43 -07:00
config as part of the bootstrap task, remove previously generated config/env.generated.json, if it exists 2017-01-24 15:56:55 -08:00
js Merge pull request #543 from mozilla/issue-482-autocomplete-tag 2017-05-19 12:42:51 -07:00
pages Enable Travis and Appveyor CI (#584) 2017-06-22 10:04:43 -07:00
scss Fixes #511 - removed splash page (#582) 2017-06-22 09:52:14 -07:00
.eslintrc.yaml code improvement 2017-03-14 14:09:33 -07:00
.gitignore relateds to #318 - code improvements + added a sample.env file + updated README 2017-01-24 11:02:02 -08:00
.stylelintrc fixes merge conflicts 2016-12-21 16:20:23 -08:00
.travis.yml Enable Travis and Appveyor CI (#584) 2017-06-22 10:04:43 -07:00
Procfile Related to #305 - forgot to update Procfile in the previous commit 2017-01-11 13:45:45 -08:00
README.md Added dev deps badge 2017-07-04 17:06:05 -07:00
app.json Add Heroku generated app.json 2017-02-15 14:47:33 -05:00
appveyor.yml Enable Travis and Appveyor CI (#584) 2017-06-22 10:04:43 -07:00
favicon.png relates to #241, #242 - updated favicons 2017-01-03 18:09:04 -08:00
index.html Fixes #159 - added Twitter share button 2017-05-16 12:41:33 -07:00
main.jsx fixed react router onUpdate confusion 2017-03-27 16:29:41 -07:00
manifest.json Fixes #461 - updated logo used in manifest.json (android devices) 2017-05-16 13:01:25 -07:00
package-lock.json Fixes #587 - updated npm to v5 and node to v8 (#589) 2017-06-22 16:22:15 -07:00
package.json Fixes #587 - updated npm to v5 and node to v8 (#589) 2017-06-22 16:22:15 -07:00
routes.jsx Fixes #511 - removed splash page (#582) 2017-06-22 09:52:14 -07:00
sample.env Project list refactor. Fetch 24 projects at a time by default. 2017-03-09 11:50:39 -08:00
server.js Fixes #159 - added Twitter share button 2017-05-16 12:41:33 -07:00
webpack.config.js attempting to use 'document-env-vars' module 2017-02-27 15:09:12 -08:00
webpack.server.config.js attempting to use 'document-env-vars' module 2017-02-27 15:09:12 -08:00

README.md

Travis Build Status AppVeyor Build Status Dependency Status Dev Dependency Status

Mozilla Pulse

Pulse is a platform that helps the Mozilla Network capture and broadcast its projects and activities. mozillapulse.org

Around the globe, teachers, engineers, activists, and others collaborate to protect and extend the internet as a public resource. They create amazing apps, art, tools, games, and campaigns. Their impact is tremendous, but decentralized and difficult to track, even within the network.

Pulse reveals the network's footprint, it fosters collaboration and amplifies the big wins.

Contribute

Testing

Interested in contributing to this project? A good place to start is by helping with Quality Tests. File a new issue to say hello and let us know that you're interested.

Fix bugs or help with new features

Browse the issues. Look for the labels enhancement, help wanted, good first bug.

Developmemt

Requirements for Development

  • node
  • npm

Setup for Development

  • git clone -b master https://github.com/mozilla/network-pulse.git
  • cd network-pulse
  • cp sample.env .env (and modify values in sample.env so they match what you use for your local development env, see environment variables section)
  • npm install
  • npm start

Environment Variables

HOST

The host you are using. e.g., HOST=http://localhost

PORT

The port number you are using. e.g., PORT=3000

PULSE_API (optional)

Default: https://network-pulse-api-staging.herokuapp.com/

URL to your local Pulse API instance (if you have one set up). e.g., PULSE_API=http://test.example.com:8000

To set up a local instance of Pulse API, follow instructions on https://github.com/mozilla/network-pulse-api/blob/master/README.md.

ORIGIN (auto-generated)

Derived variable based on HOST and PORT - overriding this yourself will do nothing.

PROJECT_BATCH_SIZE (optional)

Default: 24

Number of projects you want to display as a batch. Make sure this number is divisible by 2 AND 3 so rows display evenly for different screen sizes.

Deployment

Staging

URL: https://network-pulse-staging.herokuapp.com/

Updates to master branch automatically triggers staging deployment.

Production

URL: https://mzl.la/pulse

Deployment is done manually.

Concretely, we need to do a deployment rather than a "promotion" because there is a client-side bundle that gets built during deploy, and relies on environment variables at build time. As the staging environment and production environment differ in environment variables, we can't build on staging and then promote to production, as that would simply make our staging client "live".

To manually deploy production site:

  1. Go to Heroku dashboard.
  2. Find network-pulse-production app.
  3. In the "Deploy" tab, scroll down to the "Manual deploy" section.
  4. Deploy master branch. (see screencap below) screen shot 2017-03-02 at 10 20 51 am