# Technical Documentation: mozilla/COPYRIGHT

> ℹ️ **Provenance:** In-Tree Documentation (4 Chapters) · [CodeWiki Reference](https://codewiki.google/github.com/mozilla/COPYRIGHT) · Recency: Active (< 180 days)

## File: README.md

# Overview

This is the repository for [https://changecopyright.org](https://changecopyright.org)

# Getting Started

Clone a copy of the repository using something like [git](http://git-scm.com/).

To get a local version of the site running, you'll need [node](http://nodejs.org/) 8 or higher installed on your local machine.

## Build

To start local development, install and run the following commands:

``` bash
$ cp sample.env .env
$ npm install
$ npm start
```

## Develop Workflow

After successfully building and running the server, go to [localhost:4000/](http://localhost:4000/)

You can now start changing files in the `/src` directory, such that saving your changes and refreshing the browser will show your changes.

Files outside of /src require npm start to be rerun.

## Location ID

To switch campaign IDs based on location, change the env `LOCATION_ID`

Brussels = `1` is also the default.

Strasbourg = `2`

---

## File: app.json

{
  "name": "copyright",
  "scripts": {
  },
  "env": {
    "APPLICATION_URI": {
      "required": true
    },
    "AWS_ACCESS_KEY_ID": {
      "required": true
    },
    "AWS_SECRET_ACCESS_KEY": {
      "required": true
    },
    "CALL_POWER_URL": {
      "required": true
    },
    "COPYRIGHT_CAMPAIGN_ID": {
      "required": true
    },
    "ENABLE_PONTOON": {
      "required": true
    },
    "ENABLE_XFRAMEOPTIONS": {
      "required": true
    },
    "FULL_SUBDOMAIN_FOR_COOKIE": {
      "required": true
    },
    "HATCHET_APP_NAME": {
      "required": true
    },
    "HATCHET_QUEUE_REGION": {
      "required": true
    },
    "HATCHET_QUEUE_URL": {
      "required": true
    },
    "HOST": {
      "required": true
    },
    "LOCATION_ID": {
      "required": true
    },
    "NEW_RELIC_ENABLED": {
      "required": true
    },
    "NODE_ENV": {
      "required": true
    },
    "NPM_CONFIG_PRODODUCTION": {
      "required": true
    },
    "OPTIMIZELY_ACTIVE": {
      "required": true
    },
    "OPTIMIZELY_ID": {
      "required": true
    },
    "SIGNUP": {
      "required": true
    },
    "SUPPORTED_LOCALES": {
      "required": true
    }
  },
  "formation": {
    "web": {
      "quantity": 1
    }
  },
  "addons": [

  ],
  "buildpacks": [
    {
      "url": "heroku/nodejs"
    }
  ]
}

---

## File: package.json

{
  "main": "start.js",
  "scripts": {
    "start": "npm-run-all --parallel build:l10njson watch:js server",
    "build:l10njson": "pontoon-to-json --dest ./public",
    "build:babel": "babel src --compact=true -s --out-dir dist",
    "build:webpack": "webpack --optimize-minimize --optimize-dedupe",
    "watch:js": "npm-run-all --parallel watch:babel watch:webpack",
    "watch:babel": "npm run build:babel -- -w",
    "watch:webpack": "webpack --progress --profile --colors --watch",
    "server": "node start.js",
    "imagemin": "imagemin assets/images/* assets/images",
    "postinstall": "npm-run-all build:*"
  },
  "author": "Mozilla",
  "license": "MPL-2.0",
  "dependencies": {
    "accept-language-parser": "1.0.2",
    "assets-webpack-plugin": "3.2.0",
    "async": "1.5.1",
    "babel-cli": "6.7.5",
    "babel-core": "6.5.2",
    "babel-loader": "6.2.1",
    "babel-preset-es2015": "6.3.13",
    "babel-preset-react": "6.11.1",
    "bestlang": "0.0.1",
    "blankie": "1.1.1",
    "boom": "3.1.1",
    "classnames": "2.2.5",
    "css-loader": "0.23.1",
    "enhanced-require": "0.5.0-beta6",
    "eslint": "1.10.3",
    "eslint-loader": "1.1.1",
    "eslint-plugin-react": "3.14.0",
    "exports-loader": "0.6.2",
    "extract-text-webpack-plugin": "0.9.1",
    "form-data": "2.3.1",
    "good": "6.4.0",
    "good-console-logfmt": "1.0.2",
    "habitat": "3.1.2",
    "hapi": "13.3.0",
    "hapi-auth-bearer-token": "4.0.2",
    "hatchet": "0.3.2",
    "imports-loader": "0.6.5",
    "inert": "3.2.1",
    "joi": "7.1.0",
    "json-loader": "0.5.4",
    "langmap": "0.0.12",
    "less": "2.5.3",
    "less-loader": "2.2.2",
    "libphonenumber-js": "^0.4.27",
    "localized-countries": "1.0.2",
    "node-fetch": "1.7.2",
    "normalize.css": "5.0.0",
    "npm-run-all": "1.4.0",
    "object-assign": "4.1.0",
    "polyfill-service": "2.2.0",
    "pontoon-to-json": "1.0.1",
    "properties-parser": "0.3.1",
    "react": "15.2.1",
    "react-dom": "15.2.1",
    "react-ga": "2.1.1",
    "react-intl": "2.1.3",
    "react-redux": "4.4.5",
    "react-router": "2.0.0",
    "redux": "3.6.0",
    "request": "2.67.0",
    "scooter": "2.0.1",
    "style-loader": "0.13.0",
    "throng": "1.0.1",
    "webpack": "1.12.9"
  },
  "devDependencies": {
    "cross-spawn": "2.1.4",
    "dependency-check": "2.5.1",
    "geckodriver": "1.1.2",
    "imagemin-cli": "2.0.0",
    "moment": "2.12.0"
  },
  "engines": {
    "node": "^8.9.0"
  }
}

---

## File: .travis.yml

language: node_js
node_js:
- '8'
sudo: false
cache:
  directories:
  - node_modules
env:
  global:
  - APPLICATION_URI="http:\/\/example.com"
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start

--- METRICS ---
- Files Extracted: 4
- Estimated Token Budget: ~1674 tokens
- Recency Window: Active (< 180 days)
- Canonical Reference: https://codewiki.google/github.com/mozilla/COPYRIGHT
