# svsbank-cli

> Bukalapak services installer bank

Latest version **0.1.6** (published 2018-08-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install svsbank-cli
pnpm add svsbank-cli
yarn add svsbank-cli
bun add svsbank-cli
```

Provides the command `svsbank-cli`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2018-08-23 |
| First published | 2018-08-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 43 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Antoni |
| Maintainers | moonhint |
| Keywords | services, micro, installer, shell, script, runner |

## Links

- npm: https://www.npmjs.com/package/svsbank-cli
- Repository: https://github.com/bukalapak/svsbank-cli
- Homepage: https://github.com/bukalapak/svsbank-cli/blob/master/README.md
- Issues: https://github.com/bukalapak/svsbank-cli.git
- npm.io page: https://npm.io/package/svsbank-cli

## Dependencies (10)

- [fuzzy](https://npm.io/package/fuzzy.md) ^0.1.3
- [colors](https://npm.io/package/colors.md) ^1.3.1
- [lodash](https://npm.io/package/lodash.md) ^4.17.10
- [js-yaml](https://npm.io/package/js-yaml.md) ^3.12.0
- [shelljs](https://npm.io/package/shelljs.md) ^0.8.2
- [inquirer](https://npm.io/package/inquirer.md) ^6.1.0
- [commander](https://npm.io/package/commander.md) ^2.17.1
- [get-stream](https://npm.io/package/get-stream.md) ^3.0.0
- [inquirer-checkbox-plus](https://npm.io/package/inquirer-checkbox-plus.md) ^1.0.1
- [inquirer-checkbox-plus-prompt](https://npm.io/package/inquirer-checkbox-plus-prompt.md) ^1.0.1

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.1.6 (latest) — 2018-08-23
- 0.1.5 — 2018-08-22
- 0.1.4 — 2018-08-21
- 0.1.3 — 2018-08-20
- 0.1.2 — 2018-08-16
- 0.1.1 — 2018-08-16
- 0.1.0 — 2018-08-13

## README

# svsbank-cli
> Services di Bukalapak udah banyak, kalau mau develop lama di installingnya.
> Kalau ada tools yang bisa buat ng-install services dengan mudah kan enak.

# requirement!
* [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)  - Harus sudah install git dan setup ssh di github;
* [Node](https://github.com/creationix/nvm)  - Harus sudah install node & npm (v8.11.3 & 5.6.0). Install Node with [NVM](https://github.com/creationix/nvm) is recomended:
( if node was not installed with NVM, we need to use sudo everytime -g install )

Setup git configs:
- Run `git config --global user.name "Your Name Here"`
- Run `git config --global user.email "your-github-email@example.com"`

Setup SSH:
- Run `ssh-keygen`
- Run `gedit ~/.ssh/id_rsa.pub`
- add ssh to github

# how to use!

To install (add) service:
  - Run `npm install -g svsbank-cli`
  - Run `svsbank-cli add`
  - Select services to be installed

# note on installing:
  - You may need to enter password for sudo command (might need to input multiple times)
  - ...

NB: On Mothership Installer
  - If asked mysql password, the answer is `rootpw` (might need to input multiple times)
  - ...

# infos:
Install directories:
```bash

~/.svsbank_profile [for all paths setting used in the process]

~/ [for go services]
.
+-- /go/
|   +-- bin/
|   +-- pkg/
|   +-- src/
|       +-- github.com/
|           +-- bukalapak/
|               +-- /aleppo/[PROJECT]
|               +-- /attache/[PROJECT]
|               +-- /imagery-s3/[PROJECT]

~/ [for non go services]
.
+-- /svsbank/
|   +-- mothership/[PROJECT]
|   +-- grimoire/[PROJECT]
|   +-- olympus/[PROJECT]
|   +-- pogchamp/[PROJECT]
|   +-- shinkansen/[PROJECT]
|   +-- docker-compose.yml
|   +-- .env
```

Automated Flows:
  1. check if git installed, if none (quit process)
  2. check & install docker on local machine (if none)
  3. check & install docker compose on local machine (if none)
  4. check & create svsbank directory (if none)
        1. do svsbank directory
        2. check & install go (if none) (run only if go service needed)
        3. need to prepare go workspace beforehand here (run only if go service needed)
  5. remove svsbank/docker-compose.yml
  6. run installation for selected services
        1. check & remove directory (svsbank/[service]) (if any)
        2. clone repo from github (ssh will be used, go services will be cloned to go-workspace)
        3. building docker image
        4. append docker compose & env config
        5. overwrite compose and env config to svsbank path
        6. run installation shell script (if any)

Shell Scripts Rules:
  - ...

Composes Rules:
  - ...


# on dev pipeline (TODOs):
- Mothership mac installer
- Aleppo linux installer
- Aleppo mac installer

# tested on:
- Ubuntu 16.04.5 LTS (xenial)

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