A stream of assets from peers across the Mozilla Network
Перейти к файлу
dependabot-preview[bot] c86d922350
Bump react-modal from 3.11.1 to 3.11.2 (#1257)
Bumps [react-modal](https://github.com/reactjs/react-modal) from 3.11.1 to 3.11.2.
- [Release notes](https://github.com/reactjs/react-modal/releases)
- [Changelog](https://github.com/reactjs/react-modal/blob/master/CHANGELOG.md)
- [Commits](https://github.com/reactjs/react-modal/compare/v3.11.1...v3.11.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-30 10:14:22 -07:00
.github/ISSUE_TEMPLATE Update issue templates (#1062) 2019-05-14 09:32:36 -07:00
assets make svgo call cross-platform now that it can recursively traverse directories (#1272) 2020-03-25 14:42:19 -07:00
components Fix profile search bug (#1205) 2019-12-17 12:25:54 -08:00
config Join Us Flow (#1097) 2019-07-08 14:39:10 -04:00
js Removed 'request' as dependency (#1247) 2020-02-27 08:51:28 -08:00
pages Update babel-loader and the presets it uses (#1183) 2019-12-11 14:55:32 -08:00
scss update some font styles so they align with changes made to the brand style guide (#1251) 2020-03-02 11:41:19 -08:00
.eslintrc.json Make ESLint raise errors instead of warnings (#1147) 2019-08-28 09:13:17 -07:00
.gitignore Dependency updates (#961) 2018-06-19 11:05:41 -07:00
.stylelintrc Prettier for stylelint (#1149) 2019-09-03 14:58:54 -07:00
.stylelintrc-colors.js Prettier for stylelint (#1149) 2019-09-03 14:58:54 -07:00
.travis.yml node 12 rather than 8 (#1238) 2020-02-12 11:06:38 +01:00
CODE_OF_CONDUCT.md add code of conduct (#1016) 2019-02-22 11:23:41 -05:00
PULL_REQUEST_TEMPLATE.md Move codeowners to PR template (#896) 2017-12-18 19:33:53 -06:00
Procfile Related to #305 - forgot to update Procfile in the previous commit 2017-01-11 13:45:45 -08:00
README.md use 'heroku-postinstall' instead of 'postinstall' (#1264) 2020-03-16 12:28:22 -07:00
app.json update docs, reviewapp admin script and app.json (#1229) 2020-01-22 10:49:25 +01:00
app.jsx use @babel/polyfill to fix a bunch of IE issues (#1252) 2020-03-02 10:30:37 -08:00
appveyor.yml node 12 rather than 8 (#1238) 2020-02-12 11:06:38 +01:00
contribute.json Bumped up Pulse's Observatory score (#876) 2017-12-06 15:13:20 -08:00
main.jsx Main spacing content fix #2 (#1127) 2019-08-01 10:37:36 -07:00
manifest.json Update manifest (#823) 2017-10-25 08:47:51 -04:00
package-lock.json Bump react-modal from 3.11.1 to 3.11.2 (#1257) 2020-03-30 10:14:22 -07:00
package.json Bump react-modal from 3.11.1 to 3.11.2 (#1257) 2020-03-30 10:14:22 -07:00
server.js Fix 'setIf' deprecation warning (#1172) 2019-11-28 11:14:09 -08:00
webpack.client.common.js Update webpack, webpack-cli, chokidar, chokidar-cli, and helmet to latest version (#1165) 2019-11-27 18:27:17 -08:00
webpack.client.dev.js Update webpack, webpack-cli, chokidar, chokidar-cli, and helmet to latest version (#1165) 2019-11-27 18:27:17 -08:00
webpack.client.prod.js Update webpack, webpack-cli, chokidar, chokidar-cli, and helmet to latest version (#1165) 2019-11-27 18:27:17 -08:00
webpack.server.common.js Update webpack, webpack-cli, chokidar, chokidar-cli, and helmet to latest version (#1165) 2019-11-27 18:27:17 -08:00
webpack.server.dev.js Update webpack, webpack-cli, chokidar, chokidar-cli, and helmet to latest version (#1165) 2019-11-27 18:27:17 -08:00
webpack.server.prod.js Update webpack, webpack-cli, chokidar, chokidar-cli, and helmet to latest version (#1165) 2019-11-27 18:27:17 -08:00

README.md

Mozilla Pulse

Travis Build Status AppVeyor Build Status

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

We love contributors, but the team maintaining this project is small and not structured to significantly support new and inexperienced contributors. If there's an unassigned issue that catches your eye, feel free to open a PR for it, but keep in mind our support will be limited. We usually don't have the capacity to walk you through the process of spinning up the project, opening a PR or describing what the solution to the issue could be.

Development

Requirements

  • node
  • npm

Setup

$> git clone https://github.com/mozilla/network-pulse.git
$> cd network-pulse
$> npm install
$> npm start

If you would like to override default environment variables... create a .env file on the root directory and set your env vars there. See environment variables section for details.

Key scripts to run

npm start

This starts server in development mode. See environment variables section for PORT number.

npm test

This starts a few test scripts. Don't forget to run this command and fix errors (if any) before you git push your changes.

npm optimize

This starts a few image optimization scripts.

Environment variables

Name Description
PORT Default: process.env.PORT(falls back to 3000 if process.env.PORT cannot be found)

The port number you are running the server on.
PULSE_API_HOST Default: https://pulse-api.mofostaging.net

Host of the Pulse API URL.
PULSE_API Default: https://pulse-api.mofostaging.net/api/pulse

URL to Pulse API. e.g., http://test.example.com:8000/api/pulse.
To set up a local instance of Pulse API, follow instructions on Pulse API README doc.
PULSE_LOGIN_URL Default: https://pulse-api.mofostaging.net/accounts/login/

URL to use to login to Pulse. This needs to be a Pulse API login url.
PULSE_LOGOUT_URL Default: https://pulse-api.mofostaging.net/accounts/logout/

URL to use to logout of Pulse. This needs to be a Pulse API logout url.
PROJECT_BATCH_SIZE 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.
PROFILE_BATCH_SIZE Default: 10

Number of profiles you want to display as a batch.
LEARN_MORE_LINK Default: https://www.mozillapulse.org/entry/120

Link to learn more about what Pulse project is about.
NODE_ENV Default: development

When this is set to production, it enables production specific express settings and middleware
APP_HOST Default: localhost

The domain which this app should serve. It's only used when NODE_ENV is set to production
HEROKU_APP_NAME Default: ""

The name of the review app (generated by Heroku).
GITHUB_TOKEN Default: ""

GitHub token used by the review app slack webhook.
SLACK_WEBHOOK Default: ""

Webhook of the Slack channel where the bot is posting.

Deployment

Staging

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

Updates to master branch automatically triggers staging deployment.

Production

URL: https://mozillapulse.org

Deployment is done using the Heroku pipeline. Simply click "Promote To Production".

Review Apps

Review App for PRs

Opening a PR will automatically create a Review App in the network-pulse pipeline. A slack bot posts credentials and links to Review Apps in to the mofo-ra-pulse Slack channel.

Note: This only work for Mo-Fo staff: you will need to manually open a Review App on Heroku for PRs opened by external contributors.

Review App for branches

You can manually create a review app for any branch pushed to this repo. It's useful if you want to test your code on Heroku without opening a PR yet.

To create one:

  • log into Heroku.
  • Go to the network-pulse pipeline.
  • Click on + New app and select the branch you want to use.

The review app slack bot will post a message in the mofo-ra-pulse with links and credentials as soon as the review app is ready.

Environment variables:

  • GITHUB_TOKEN: GITHUB API authentication,
  • SLACK_WEBHOOK_RA: Webhook to mofo-ra-pulse

Non-secret envs can be added to the app.json file. Secrets must be set on Heroku in the Review Apps (pipelines' settings tab).