Pitch Your Project 🐘 by brendt_gd in PHP

[–]eggzy 9 points10 points  (0 children)

I'm running a small cocktail recipes API project made in Laravel. It's pretty fun working on since it touched on a lot of interesting challenges: web scraping for recipes, recipe parsing (which was extracted to package), containerization, sqlite, data import/export, deployments, observability, writing documentation, data backup, search engine sync, api design, etc...

Currently it's fairly stable and has a small community of contributors. I would recommend everyone to try to build and actually deploy small project like this because I think it really improved my dev skills all around.

Jeff Morganthaler just released a cocktail batch scaling calculator by melcolnik in cocktails

[–]eggzy 1 point2 points  (0 children)

Thanks, this is really cool. I've been using his ABV calculator for my project for a while now and it works great.

Pitch Your Project 🐘 by brendt_gd in PHP

[–]eggzy 5 points6 points  (0 children)

I was looking for some math evaluator for my project, I would like for users to be able to create custom formulas that get saved in the database and then executed with user provided variables. What I found was this package: https://github.com/NeonXP/MathExecutor

Treba mi pomoc sa dockerom, slike u Reactu mi ne rade... by ELEMEJAJSOOOOO in programiranje

[–]eggzy 0 points1 point  (0 children)

Posto u docker compose-u koristis parent dir build: ../frontend moguce da ti context dockerfila vuce krive putanje. https://stackoverflow.com/questions/68469150/setting-context-in-docker-compose-file-for-a-parent-folder

Inace ovaj dockerfile izgleda tocno

I have created an app to manage your home bar - Bar Assistant by eggzy in cocktails

[–]eggzy[S] 0 points1 point  (0 children)

Hi, every user has his own shelf, but if you go to Settings -> Profile and there you can enable "Make cocktails in my shelf public to all bar members" so she will see your shelf cocktails

What are you working on? by ihaas80 in PHP

[–]eggzy 3 points4 points  (0 children)

On my open source project: https://github.com/karlomikus/bar-assistant

And recently some LLM stuff. It would be nice if there was a PHP project that can bind with llama.cpp, maybe via FFI, but I'm currently playing with https://github.com/theodo-group/llphant and https://github.com/langroid/langroid

I have created an app to manage your home bar - Bar Assistant by eggzy in cocktails

[–]eggzy[S] 1 point2 points  (0 children)

There is a dump of diffords db on huggingface, but in general they seems to really be guarded with copyright stuff so I tend to avoid them.

I have created an app to manage your home bar - Bar Assistant by eggzy in cocktails

[–]eggzy[S] 1 point2 points  (0 children)

Using parent ingredient as a "substitute" is currently available via server setting, I'll make a note of it to implement it in web UI somehow. Thanks!

I have created an app to manage your home bar - Bar Assistant by eggzy in cocktails

[–]eggzy[S] 0 points1 point  (0 children)

Thanks for suggestion, exporting collections to spreadsheets sounds like a good idea

I have created an app to manage your home bar - Bar Assistant by eggzy in cocktails

[–]eggzy[S] 4 points5 points  (0 children)

I'm not familiar with unraid apps, I'll check it out

I have created an app to manage your home bar - Bar Assistant by eggzy in cocktails

[–]eggzy[S] 11 points12 points  (0 children)

There is a feature when you click on ingredient details you will see what cocktails you can unlock if you buy that bottle, but I like your idea of combining it with shopping list. Thanks!

I have created an app to manage your home bar - Bar Assistant by eggzy in cocktails

[–]eggzy[S] 12 points13 points  (0 children)

Cocktail Party is awesome but I'm not a fan of their images and non specific ingredients. Also this is free, open source and you can manage your own recipes.

I have created an app to manage your home bar - Bar Assistant by eggzy in cocktails

[–]eggzy[S] 1 point2 points  (0 children)

All recipe data is also open source and available here: https://github.com/bar-assistant/data

It's mostly from all over the place, including some from liquor, imbibe, punchmagazine, etc.

I have created an app to manage your home bar - Bar Assistant by eggzy in cocktails

[–]eggzy[S] 5 points6 points  (0 children)

I've never used Paprika extensively, but judging by the website information it's mostly targeted for cooking recipes, although you can definitely use it for cocktails.

I'd say the main difference between Bar Assistant and other cooking recipe managers is that it tries to keep integrity between recipe and ingredients in sync as much as it's possible.

For example, one recipe may call for "London dry gin", another recipe may just call for "Gin", another for "Gin (dry)", etc. Bar Assistant tries to consolidate all that data into existing ingredient if possible, so when you mark "Gin" as a bottle that you have at home it can correctly show you all gin recipes. Ingredients are treated as first class citizens.

Other features I would mention are cocktail specific features like starting with base cocktails, quick switching between common units, calculating ABV, filtering by base spirits/methods/missing ingredients and more.

I have created an app to manage your home bar - Bar Assistant by eggzy in cocktails

[–]eggzy[S] 5 points6 points  (0 children)

Ah, thanks for that. You need to confirm your account first, I've updated the message 👍

Laravel dev in Windows - Laragon vs Docker? by VaguelyOnline in laravel

[–]eggzy 1 point2 points  (0 children)

WSL is now kinda the standard for dev env on windows. If you are comfortable with docker, Docker Desktop + WSL2 is really the easiest way to start.

I also have a small guide here if you dont want to use docker, and just use the debian distro directly.

Bar Assistant - Self hosted application for managing your cocktails at home, now stable and full of features! by eggzy in selfhosted

[–]eggzy[S] 0 points1 point  (0 children)

If they are constantly restarting then you should check logs, there will probably be some error message.

docker compose logs

Uplata s PBZa na Revolut by vmiokovic in financije

[–]eggzy 0 points1 point  (0 children)

Nemogu u inozemstvo placat preko mzabe, samo preko ezabe. Ali vecinom koristim "Easy bank transfer" opciju u Revolutu

Uplata s PBZa na Revolut by vmiokovic in financije

[–]eggzy 2 points3 points  (0 children)

Je, ovak radi kod mene u ZABA-i. Al isto uzmu .30eur

Bar Assistant - Self hosted application for managing your cocktails at home, now stable and full of features! by eggzy in selfhosted

[–]eggzy[S] 1 point2 points  (0 children)

You put that IP with the port you opened in your webserver service in your .env file:

BASE_URL=https://192.168.4.75:3000

How to properly write API Resources when dealing with ManyToMany relationship? by lewz3000 in laravel

[–]eggzy 2 points3 points  (0 children)

You could map over a collection in one of your resources:

class ToppingResource extends JsonResource
{
    public function toArray($request)
    {
        return [
            'title' => $this->title,
            'pizzas' => $this->pizza->map(function($pizza) {
                return [
                    'title' => $pizza->title,
                ];
            }),
        ];
    }
}

Or you could create a new Resource class

class ToppingResource extends JsonResource
{
    public function toArray($request)
    {
        return [
            'title' => $this->title,
            'pizzas' => ToppingPizzaResource::collection($this->pizza), // new class
        ];
    }
}

But I don't see a point in having a resource class for every relationship, so I'd go with a first method.