2019-03-30 14:47:34 +00:00
# [![Firefox Send](./assets/logo.svg)](https://send.firefox.com/)
2017-06-26 19:34:31 +00:00
2017-07-20 15:08:13 +00:00
[![CircleCI ](https://img.shields.io/circleci/project/github/mozilla/send.svg )](https://circleci.com/gh/mozilla/send)
2017-06-26 19:34:31 +00:00
2018-03-06 00:29:09 +00:00
**Docs:** [FAQ ](docs/faq.md ), [Encryption ](docs/encryption.md ), [Build ](docs/build.md ), [Docker ](docs/docker.md ), [Metrics ](docs/metrics.md ), [More ](docs/ )
2017-07-14 20:20:28 +00:00
2017-08-20 12:05:48 +00:00
---
2017-10-06 19:03:14 +00:00
## Table of Contents
* [What it does ](#what-it-does )
* [Requirements ](#requirements )
* [Development ](#development )
* [Commands ](#commands )
* [Configuration ](#configuration )
* [Localization ](#localization )
* [Contributing ](#contributing )
* [Testing ](#testing )
2019-07-12 14:07:24 +00:00
* [Deployment ](#deployment )
2018-09-19 14:19:18 +00:00
* [Android ](#android )
2017-10-06 19:03:14 +00:00
* [License ](#license )
---
2017-08-20 12:05:48 +00:00
2017-06-26 19:34:31 +00:00
## What it does
2017-07-19 16:23:42 +00:00
A file sharing experiment which allows you to send encrypted files to other users.
2017-06-26 19:34:31 +00:00
2017-08-20 12:05:48 +00:00
---
2017-06-26 19:34:31 +00:00
## Requirements
2019-09-19 17:37:05 +00:00
- [Node.js 10.x ](https://nodejs.org/ )
2017-08-25 20:58:51 +00:00
- [Redis server ](https://redis.io/ ) (optional for development)
- [AWS S3 ](https://aws.amazon.com/s3/ ) or compatible service. (optional)
2017-06-26 19:34:31 +00:00
2017-08-25 20:58:51 +00:00
---
## Development
To start an ephemeral development server run:
2017-06-26 19:34:31 +00:00
```sh
2017-08-25 20:58:51 +00:00
npm install
npm start
2017-06-26 19:34:31 +00:00
```
2017-08-25 22:41:53 +00:00
Then browse to http://localhost:8080
2017-08-20 12:05:48 +00:00
---
2017-08-25 20:58:51 +00:00
## Commands
2017-06-26 19:34:31 +00:00
| Command | Description |
|------------------|-------------|
| `npm run format` | Formats the frontend and server code using **prettier** .
| `npm run lint` | Lints the CSS and JavaScript code.
| `npm test` | Runs the suite of mocha tests.
2017-08-24 21:54:02 +00:00
| `npm start` | Runs the server in development configuration.
| `npm run build` | Builds the production assets.
| `npm run prod` | Runs the server in production configuration.
2017-06-26 19:34:31 +00:00
2017-08-20 12:05:48 +00:00
---
2017-08-25 20:58:51 +00:00
## Configuration
2017-08-27 20:45:38 +00:00
The server is configured with environment variables. See [server/config.js ](server/config.js ) for all options and [docs/docker.md ](docs/docker.md ) for examples.
2017-08-25 20:58:51 +00:00
---
2017-06-26 19:34:31 +00:00
## Localization
2017-12-21 15:35:44 +00:00
Firefox Send localization is managed via [Pontoon ](https://pontoon.mozilla.org/projects/test-pilot-firefox-send/ ), not direct pull requests to the repository. If you want to fix a typo, add a new language, or simply know more about localization, please get in touch with the [existing localization team ](https://pontoon.mozilla.org/teams/ ) for your language or Mozilla’ s [l10n-drivers ](https://wiki.mozilla.org/L10n:Mozilla_Team#Mozilla_Corporation ) for guidance.
2017-06-26 19:34:31 +00:00
2018-03-06 00:29:09 +00:00
see also [docs/localization.md ](docs/localization.md )
2017-08-20 12:05:48 +00:00
---
2017-06-26 19:34:31 +00:00
## Contributing
2017-12-31 11:09:57 +00:00
Pull requests are always welcome! Feel free to check out the list of ["good first issues" ](https://github.com/mozilla/send/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22 ).
2017-06-26 19:34:31 +00:00
2017-08-20 12:05:48 +00:00
---
2017-07-05 16:47:22 +00:00
## Testing
2017-06-26 19:34:31 +00:00
2017-07-05 16:47:22 +00:00
| ENVIRONMENT | URL
|-------------|-----
2017-07-06 19:12:01 +00:00
| Production | < https: / / send . firefox . com / >
2019-03-08 01:03:50 +00:00
| Stage | < https: / / stage . send . nonprod . cloudops . mozgcp . net / >
| Development | < https: / / send2 . dev . lcip . org / >
2017-06-26 19:34:31 +00:00
2017-08-20 12:05:48 +00:00
---
2019-07-12 14:07:24 +00:00
## Deployment
see also [docs/deployment.md ](docs/deployment.md )
---
2018-09-19 14:19:18 +00:00
## Android
The android implementation is contained in the `android` directory, and can be viewed locally for easy testing and editing by running `ANDROID=1 npm start` and then visiting < http: // localhost:8080 > . CSS and image files are located in the `android/app/src/main/assets` directory.
---
2017-06-26 19:34:31 +00:00
## License
[Mozilla Public License Version 2.0 ](LICENSE )
2017-08-20 12:05:48 +00:00
---