mgeraci / cocktails Goto Github PK
View Code? Open in Web Editor NEWA simple cocktail recipe manager
A simple cocktail recipe manager
Mug glass
makes no sense, so this should become a database field.
Also: mug needs an illustration.
One example is the Harvest Moon, though there are others. Clicking the link to get the unauthenticated recipe results in a 404 error.
Recipes that are private should have a way of generating a unique-but-hard-to-guess url for sharing that doesn't require authentication.
I was looking for The Charles
in the C
section, and couldn't find it, so I should ignore articles.
This stackoverflow answer has a pretty good explanation of a strategy: https://stackoverflow.com/questions/12544310/how-to-custom-sort-a-django-queryset
If you search for an ingredient like "aquavit", you get a nice list of recipes that have any ingredient that has that string in it. But if you go to the ingredients page and click on the ingredient "aquavit", you don't get most of the recipes, because most of them have specific types of aquavit — therefore the ingredient does not match.
One solution could be to change the way the ingredient page works to be more like search, and maybe that's a really easy solution. Another idea could be to add some sort of inheritance to ingredients, so specific types of liquor could inherit from a base class of that ingredient type. 
Searching for frose
does not bring up the recipe for frosé
. There are a handful of other examples, as well, like benedictine.
Certain categories would be:
Other possibilities within recipes could include:
But instead, on the browse sources page, they display in order of creation.
The app is smart enough to display recipes that have the same name with the source appended (e.g., Mai Tai (Smugger's Cove)
and Mai Tai (Speakeasy)
). However, when entering a recipe, the url slug for it is automatically generated from the recipe name, and nothing there knows about previously existing recipes with the same name. This can yield a conflict; the recipe is added successfully, but going to the url throws a 500 as django doesn't know which recipe to return.
The safest solution would seem to be a recipe-save-time check for the uniqueness of the slug. It could even programatically add the source as a suffix if there's a conflict! Or just add -2
or something.
Separately, it may be worth not having the app 500 in this case, but if the save-time solution is solid that may not be necessary.
For recipes that make a batch of drinks, it would be nice to have an optional field that tells the user how many drinks (or what volume) the recipe makes.
it seems like clicking an ingredient, like "orange", when not authenticated is leaking authenticated recipes. you still can't read the recipes, but this gives you the list.
The spacing's all messed up.
If you search for gin
, the recipe Bufala Negra
is returned, which contains the ingredient ginger ale
. It may be better to just return full word matches.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.