# lamassu-admin

> Lamassu admin server. First part of Lamassu stack you need to install.

Latest version **0.5.14** (published 2017-03-01) · unlicense license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install lamassu-admin
pnpm add lamassu-admin
yarn add lamassu-admin
bun add lamassu-admin
```

Provides the command `lamassu-admin`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.5.14 |
| Published | 2017-03-01 |
| First published | 2014-03-10 |
| Weekly downloads | 0 |
| License | unlicense |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 0.10.x |
| Dependencies | 16 |
| Known vulnerabilities | 0 (+7 in 3 direct dependencies) |
| Install scripts | no |
| Author | Lamassu |
| Maintainers | mmalecki, joshmh |
| Keywords | bitcoin |

## Links

- npm: https://www.npmjs.com/package/lamassu-admin
- Repository: https://github.com/lamassu/lamassu-admin
- Issues: https://github.com/lamassu/lamassu-admin/issues
- npm.io page: https://npm.io/package/lamassu-admin

## Dependencies (16)

- [ip](https://npm.io/package/ip.md) ^0.3.0
- [async](https://npm.io/package/async.md) ~0.2.10
- [yargs](https://npm.io/package/yargs.md) ^1.2.1
- [lodash](https://npm.io/package/lodash.md) ~2.4.1
- [request](https://npm.io/package/request.md) ^2.34.0
- [ss-jade](https://npm.io/package/ss-jade.md) 0.1.x
- [ss-hogan](https://npm.io/package/ss-hogan.md) 0.1.x
- [ss-stylus](https://npm.io/package/ss-stylus.md) 0.1.x
- [socketstream](https://npm.io/package/socketstream.md) 0.3.10
- [lamassu-bitgo](https://npm.io/package/lamassu-bitgo.md) ^0.1.7
- [lamassu-bitpay](https://npm.io/package/lamassu-bitpay.md) ~0.3.0
- [lamassu-config](https://npm.io/package/lamassu-config.md) ~0.4.0
- [lamassu-bitstamp](https://npm.io/package/lamassu-bitstamp.md) ~0.2.0
- [lamassu-coindesk](https://npm.io/package/lamassu-coindesk.md) ~0.2.0
- [lamassu-coinapult](https://npm.io/package/lamassu-coinapult.md) ^0.4.5
- [lamassu-bitcoinaverage](https://npm.io/package/lamassu-bitcoinaverage.md) ~0.2.0

## Recent versions

- 0.5.14 (latest) — 2017-03-01
- 0.5.12 (testing) — 2017-03-01
- 0.5.0 (staging) — 2014-05-07
- 0.5.13 — 2017-03-01
- 0.5.11 — 2017-02-28
- 0.5.10 — 2017-02-28
- 0.5.9 — 2016-06-07
- 0.5.8 — 2016-04-27
- 0.5.6 — 2016-03-29
- 0.5.4 — 2014-10-17
- 0.5.3 — 2014-10-16
- 0.5.2 — 2014-05-07
- 0.5.1 — 2014-05-07
- 0.4.1 — 2014-05-07
- 0.4.0 — 2014-05-07
- … 14 more at https://npm.io/package/lamassu-admin/versions

## README

# lamassu-admin

Lamassu admin server. First part of Lamassu stack you need to install.

## Installation

```sh
git clone git@github.com:lamassu/lamassu-admin.git
cd lamassu-admin
npm install
```

You also need a Postgres running. Postgres is required for storing configuration
of the remote server. Install Postgres with your package manager of choice, then:

```sh
sudo su - postgres
createuser --superuser lamassu
createdb -U lamassu lamassu
```

Then you need SQL scripts to seed initial configs. They are under `/database`.
You can bootstrap your database by running:

```sh
psql lamassu lamassu < database/lamassu.sql
```

## Configuration
You'll be able to configure your stack when you start the server for the first
time.

## Running

```sh
node app.js
```

Then, [open it](http://localhost:8081).

## Deployment

### Heroku
Both `lamassu-admin` and [`lamassu-server`](https://github.com/lamassu/lamassu-server)
are deployable to Heroku.

First, you need to get a [Heroku](https://heroku.com) account and install the
Heroku toolkit.

### The easy way
`deploy-all.sh` is an easy installation and deployment script. You can run it
standalone, without cloning `lamassu-admin`. It'll clone both repositories to
your current working directory and deploy them to Heroku:

```sh
mkdir lamassu
curl https://raw.github.com/lamassu/lamassu-admin/master/deploy-all.sh > deploy-all.sh
chmod +x deploy-all.sh
./deploy-all.sh
```

You can deploy updates to your applications by rerunning `deploy-all.sh`.

### A bit harder way
You can also clone and deploy each app individually. To do that, clone both
`lamassu-admin` and `lamassu-server`.

```sh
git clone https://github.com/lamassu/lamassu-admin.git
git clone https://github.com/lamassu/lamassu-server.git
```

Next, deploy `lamassu-admin`:

```sh
cd lamassu-admin
./deploy.sh
```

Visit the deployed application to configure your Lamassu ATM. Make sure to input
all required API keys.

Next, to deploy `lamassu-server` you need to grab `DATABASE_URL` for the Postgres
database our deployment script created.

```sh
db=$(heroku config:get DATABASE_URL)
```

Then, go to `lamassu-server` and deploy it:

```sh
DATABASE_URL="$db" ./deploy.sh
```

You need to pass `DATABASE_URL` to it since both `lamassu-admin` and `lamassu-server`
use the same database.

Both applications should be deployed and running.

---
_Source: https://npm.io/package/lamassu-admin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
