lamassu-admin

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

Now part of lamassu-server package
Last updated 4 years ago by joshmh .
unlicense · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install lamassu-admin 
SYNC missed versions from official npm registry.

lamassu-admin

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

Installation

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:

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:

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

node app.js

Then, open it.

Deployment

Heroku

Both lamassu-admin and lamassu-server are deployable to Heroku.

First, you need to get a Heroku 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:

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.

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

Next, deploy lamassu-admin:

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.

db=$(heroku config:get DATABASE_URL)

Then, go to lamassu-server and deploy it:

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.

Current Tags

  • 0.5.14                                ...           latest (4 years ago)
  • 0.5.0                                ...           staging (6 years ago)
  • 0.5.12                                ...           testing (4 years ago)

29 Versions

  • 0.5.14 [deprecated]           ...           4 years ago
  • 0.5.13 [deprecated]           ...           4 years ago
  • 0.5.12 [deprecated]           ...           4 years ago
  • 0.5.11 [deprecated]           ...           4 years ago
  • 0.5.10 [deprecated]           ...           4 years ago
  • 0.5.9 [deprecated]           ...           4 years ago
  • 0.5.8 [deprecated]           ...           4 years ago
  • 0.5.6 [deprecated]           ...           4 years ago
  • 0.5.4 [deprecated]           ...           6 years ago
  • 0.5.3 [deprecated]           ...           6 years ago
  • 0.5.2 [deprecated]           ...           6 years ago
  • 0.5.1 [deprecated]           ...           6 years ago
  • 0.5.0 [deprecated]           ...           6 years ago
  • 0.4.1 [deprecated]           ...           6 years ago
  • 0.4.0 [deprecated]           ...           6 years ago
  • 0.3.8 [deprecated]           ...           6 years ago
  • 0.3.7 [deprecated]           ...           6 years ago
  • 0.3.6 [deprecated]           ...           6 years ago
  • 0.3.5 [deprecated]           ...           6 years ago
  • 0.3.4 [deprecated]           ...           6 years ago
  • 0.3.3 [deprecated]           ...           6 years ago
  • 0.3.2 [deprecated]           ...           6 years ago
  • 0.3.1 [deprecated]           ...           6 years ago
  • 0.3.0 [deprecated]           ...           6 years ago
  • 0.2.1 [deprecated]           ...           6 years ago
  • 0.2.0 [deprecated]           ...           6 years ago
  • 0.1.3 [deprecated]           ...           7 years ago
  • 0.1.2 [deprecated]           ...           7 years ago
  • 0.1.1 [deprecated]           ...           7 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (16)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |