2017-07-11 21:34:49 +02:00
# Firefox Send
2017-06-26 21:34:31 +02:00
2017-07-20 17:08:13 +02:00
[![CircleCI ](https://img.shields.io/circleci/project/github/mozilla/send.svg )](https://circleci.com/gh/mozilla/send)
[![Available on Test Pilot ](https://img.shields.io/badge/available_on-Test_Pilot-0996F8.svg )](https://testpilot.firefox.com/experiments/send)
2017-06-26 21:34:31 +02:00
2017-07-14 22:20:28 +02:00
**Docs:** [Docker ](docs/docker.md ), [Metrics ](docs/metrics.md )
2017-08-20 14:05:48 +02:00
---
2017-06-26 21:34:31 +02:00
## What it does
2017-07-19 18:23:42 +02:00
A file sharing experiment which allows you to send encrypted files to other users.
2017-06-26 21:34:31 +02:00
2017-08-20 14:05:48 +02:00
---
2017-06-26 21:34:31 +02:00
## Requirements
2017-08-24 21:00:28 +02:00
- [Node.js 8.2+ ](https://nodejs.org/ )
2017-08-25 22:58:51 +02:00
- [Redis server ](https://redis.io/ ) (optional for development)
- [AWS S3 ](https://aws.amazon.com/s3/ ) or compatible service. (optional)
2017-06-26 21:34:31 +02:00
2017-08-25 22:58:51 +02:00
---
## Development
To start an ephemeral development server run:
2017-06-26 21:34:31 +02:00
```sh
2017-08-25 22:58:51 +02:00
npm install
npm start
2017-06-26 21:34:31 +02:00
```
2017-08-26 00:41:53 +02:00
Then browse to http://localhost:8080
2017-08-20 14:05:48 +02:00
---
2017-08-25 22:58:51 +02:00
## Commands
2017-06-26 21:34:31 +02: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 23:54:02 +02: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 21:34:31 +02:00
2017-08-20 14:05:48 +02:00
---
2017-08-25 22:58:51 +02:00
## Configuration
2017-08-27 22:45:38 +02: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 22:58:51 +02:00
---
2017-06-26 21:34:31 +02:00
## Localization
2017-08-02 06:51:19 +02: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 21:34:31 +02:00
2017-08-20 14:05:48 +02:00
---
2017-06-26 21:34:31 +02:00
## Contributing
2017-07-11 21:34:49 +02:00
Pull requests are always welcome! Feel free to check out the list of ["good first bugs" ](https://github.com/mozilla/send/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+bug%22 ).
2017-06-26 21:34:31 +02:00
2017-08-20 14:05:48 +02:00
---
2017-07-05 18:47:22 +02:00
## Testing
2017-06-26 21:34:31 +02:00
2017-07-05 18:47:22 +02:00
| ENVIRONMENT | URL
|-------------|-----
2017-07-06 21:12:01 +02:00
| Production | < https: / / send . firefox . com / >
| Stage | < https: / / send . stage . mozaws . net / >
| Development | < https: / / send . dev . mozaws . net / >
2017-06-26 21:34:31 +02:00
2017-08-20 14:05:48 +02:00
---
2017-06-26 21:34:31 +02:00
## License
[Mozilla Public License Version 2.0 ](LICENSE )
2017-08-20 14:05:48 +02:00
---