fxa/README.md

44 строки
1.5 KiB
Markdown
Исходник Обычный вид История

2014-11-05 04:38:23 +03:00
## fxa-local-dev
> An easy way to contribute to Firefox Accounts
2014-11-05 05:26:00 +03:00
[![Build Status](https://travis-ci.org/vladikoff/fxa-local-dev.svg?branch=master)](https://travis-ci.org/vladikoff/fxa-local-dev)
2014-11-05 04:38:23 +03:00
### Getting Started
2014-11-05 04:41:57 +03:00
- Install required system [dependencies](#dependencies)
2014-11-13 00:29:40 +03:00
- Clone this repository and run `npm install`. Here is the full command:
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
```
2014-11-13 00:29:40 +03:00
After installation completes you can visit [127.0.0.1:3030](http://127.0.0.1:3030/) and use the [PM2 tool](https://github.com/Unitech/PM2#main-features) to start, stop and read server logs. Most common commands are as follows:
2014-11-05 04:41:57 +03:00
2014-12-12 02:34:57 +03:00
- `./pm2 start servers.json` **- start all servers.** (WARNING: running this multiple times will spawn more of the same servers).
- `./pm2 kill` **- stop all servers.**
- `./pm2 status` - display running servers.
- `./pm2 logs` - logs for all servers (note: this must be used to verify accounts).
- `./pm2 logs 1` - display logs for process `1`.
2014-11-13 00:29:40 +03:00
- More commands on the [PM2 Readme](https://github.com/Unitech/PM2#main-features).
2014-11-05 04:38:23 +03:00
2014-12-17 06:25:58 +03:00
### Updating projects to latest `master`
- Run `npm run update`.
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
```
2014-11-05 05:25:32 +03:00
sudo apt-get install libgmp3-dev redis-server
2014-11-05 04:38:23 +03:00
```