2014-11-05 04:38:23 +03:00
|
|
|
## fxa-local-dev
|
|
|
|
> An easy way to contribute to Firefox Accounts
|
|
|
|
|
|
|
|
### Getting Started
|
|
|
|
|
2014-11-05 04:41:57 +03:00
|
|
|
- Install required system [dependencies](#dependencies)
|
|
|
|
- Clone this repository and run `npm install`.
|
2014-11-05 04:38:23 +03:00
|
|
|
```
|
2014-11-05 04:41:57 +03:00
|
|
|
git clone https://github.com/vladikoff/fxa-local-dev.git && cd fxa-local-dev && npm i
|
|
|
|
```
|
|
|
|
|
|
|
|
- Run `pm2 status` to display running servers, such as [127.0.0.1:3030](http://127.0.0.1:3030/) and [127.0.0.1:8080](http://127.0.0.1:8080/).
|
|
|
|
- Run `pm2 logs` and make sure there are no startup errors from the servers.
|
|
|
|
|
2014-11-05 04:38:23 +03:00
|
|
|
|
|
|
|
### Dependencies
|
|
|
|
|
|
|
|
[Git](http://git-scm.com/book/en/v2/Getting-Started-Installing-Git), [node.js](http://nodejs.org/), Redis, libgmp.
|
|
|
|
|
2014-11-05 04:39:50 +03:00
|
|
|
#### OSX (with [Brew](http://brew.sh/))
|
2014-11-05 04:38:23 +03:00
|
|
|
|
|
|
|
```
|
|
|
|
brew install gmp redis
|
|
|
|
```
|
|
|
|
|
|
|
|
(You might also need to run `xcode-select --install` to get OS X Command Line Tools)
|
|
|
|
|
2014-11-05 04:39:50 +03:00
|
|
|
#### Ubuntu
|
2014-11-05 04:38:23 +03:00
|
|
|
|
|
|
|
```
|
|
|
|
sudo apt-get install libgmp3-dev
|
|
|
|
```
|