karlomikus / bar-assistant

Bar assistant is a all-in-one solution for managing your home bar

Home Page:https://barassistant.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is the current method to populate the initial cocktails/ingredients/glasses/utensils?

justingood opened this issue · comments

I'm testing bar-assistant using docker-compose, but when creating a new bar it has no data.

After searching, I found #176 which recommends running php artisan bar:open . However, that fails with:

ERROR  Command "bar:open" is not defined.

This command appears to have been removed in 344678a in preparation for the v3.0 release.

What is the current method for populating an empty instance with the default data?

Thanks!

When creating a new bar you can select what data gets imported. In salt rim you can use the available checkboxes, via API you can add "options" attribute like in the docs.

{
  "name": "My bar name",
  "subtitle": "The awesome bar",
  "description": "A bar at the end of the town",
  "enable_invites": true,
  "options": [
    "cocktails",
    "ingredients"
  ]
}

Thank you, after deleting and starting again from scratch, that works!

In retrospect, I'm not at all sure how I got it into a state where it had nothing since those check-boxes are defaulted 🤦 Either way, all good now!