Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setup script for dev basics like users and stores #5987

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dennisreimann
Copy link
Member

I'm using and extending this script for setting up the basics after I erase my dev containers. Once you clean out everything with cd BTCPayServer.Tests && docker-compose down --volumes --remove-orphans && docker-compose up dev you otherwise have to recreate everything manually. This gives you ...

  • An admin user with unrestricted API key
  • One additional user per default role
  • Store 1: Satoshis Steaks with Hot Wallet and Internal Node (and all users assigned to that store)
  • Store 2: Nakamoto Nuggets with Hot Wallet and Merchant LND Lightning node (and all users besides Guest assigned to that store)
  • Nakamoto Nuggets also gets Cart and Keypad apps
  • Store 3 with External Lightning based store with Customer LND Lightning node

After creating a fresh Docker Compose setup, start BTCPay Server as usual. Once it is up, run this script with ./setup-dev-basics.sh

Sample output

Admin ID: 24cb4bbc-4cd5-4bf2-8b59-27ca32579037
API Key AAA: 00c3628b2e856b7c1a3e29d854943254fd279c9f

Store Owner ID: 32a232c6-a5ef-459b-a3d0-26821c16dbb5
Store Manager ID: bfc98b83-5b79-4b99-b2cc-ebc7f019c9a6
Store Employee ID: 70387814-c1d5-4167-8d7b-ac79bca0d99e
Store Guest ID: d032e862-cfac-41a9-a5d5-6e223c118d43

Satoshis Steaks Store ID: 8N5i84SriLQDZgQxqwDxAmPvccLLPyjF2VeDSxpsQ5jw

External Lightning Store ID: 2mYCS2HgjKgxSn7UtELpy2GAFwgMTfS9eR8ZtiiijCft

Nakamoto Nuggets Store ID: GkgwibapXWVcfcGSVmR46P2hbKKiJGc3z9srW6Dy2apm

Nakamoto Nuggets Keypad POS ID: 2ahQjfmDEZAXVDM9PcrcMJDjP3iY
Nakamoto Nuggets Cart POS ID: 2ii9NidRnVWuvxGWhUXiv1koG6gb

I'm using and extending this script for setting up the basics after I erase my dev containers. Once you clean out everything with `cd BTCPayServer.Tests && docker-compose down --volumes --remove-orphans && docker-compose up dev` you otherwise have to recreate everything manually. This gives you ...

- An admin user with unrestricted API key
- One additional user per default role
- Store 1: Satoshis Steaks with Hot Wallet and Internal Node (and all users assigned to that store)
- Store 2: Nakamoto Nuggets with Hot Wallet and Merchant LND Lightning node (and all users besides Guest assigned to that store)
- Nakamoto Nuggets also gets Cart and Keypad apps
- Store 3 with External Lightning based store with Customer LND Lightning node

## Sample output

```bash
Admin ID: 24cb4bbc-4cd5-4bf2-8b59-27ca32579037
API Key AAA: 00c3628b2e856b7c1a3e29d854943254fd279c9f

Store Owner ID: 32a232c6-a5ef-459b-a3d0-26821c16dbb5
Store Manager ID: bfc98b83-5b79-4b99-b2cc-ebc7f019c9a6
Store Employee ID: 70387814-c1d5-4167-8d7b-ac79bca0d99e
Store Guest ID: d032e862-cfac-41a9-a5d5-6e223c118d43

Satoshis Steaks Store ID: 8N5i84SriLQDZgQxqwDxAmPvccLLPyjF2VeDSxpsQ5jw

External Lightning Store ID: 2mYCS2HgjKgxSn7UtELpy2GAFwgMTfS9eR8ZtiiijCft

Nakamoto Nuggets Store ID: GkgwibapXWVcfcGSVmR46P2hbKKiJGc3z9srW6Dy2apm

Nakamoto Nuggets Keypad POS ID: 2ahQjfmDEZAXVDM9PcrcMJDjP3iY
Nakamoto Nuggets Cart POS ID: 2ii9NidRnVWuvxGWhUXiv1koG6gb
```
@dstrukt
Copy link
Member

dstrukt commented May 17, 2024

Will review this evening, thanks for setting this up and sharing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants