A stream of assets from peers across the Mozilla Network
Перейти к файлу
Mavis Ou 2c7a58504f
reduced bottom margin of a paragraph (#868)
2017-11-22 17:47:59 -08:00
assets Related to #838 - updated favicon (#850) 2017-11-17 13:12:36 -08:00
components Related to #790 - remove extra divider on mobile (#865) 2017-11-22 10:27:51 -08:00
config Moderation page (#575) 2017-07-11 15:24:10 -07:00
js Profiles show created entries (#773) 2017-10-20 17:25:25 -04:00
pages update profile edit component (#811) 2017-11-15 14:56:13 -05:00
scss New nav design (#837) 2017-11-14 08:36:12 -08: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
.snyk [Snyk] Fix for 1 vulnerable dependency path (#758) 2017-10-17 14:21:27 -07: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
CODEOWNERS Add a codeowners file. (#824) 2017-11-17 11:47:18 -05:00
Procfile Related to #305 - forgot to update Procfile in the previous commit 2017-01-11 13:45:45 -08:00
README.md Modified good first bug link to good first issue link (#765) 2017-10-16 10:47:55 -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 Related to #838 - updated favicon (#850) 2017-11-17 13:12:36 -08:00
main.jsx fixed react router onUpdate confusion 2017-03-27 16:29:41 -07:00
manifest.json Update manifest (#823) 2017-10-25 08:47:51 -04:00
package-lock.json New nav design (#837) 2017-11-14 08:36:12 -08:00
package.json Scroll to top when visiting /add page (#833) 2017-11-07 15:28:26 -08:00
routes.jsx reduced bottom margin of a paragraph (#868) 2017-11-22 17:47:59 -08:00
sample.env Updated PULSE_API in sample.env (#719) 2017-10-04 14:43:01 -07:00
server.js Related to #838 - updated favicon (#850) 2017-11-17 13:12:36 -08: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 issue.

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

Link to learn more about what Pulse project is about. e.g., LEARN_MORE_LINK=https://www.mozillapulse.org/entry/120

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/api/pulse

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