English:
Mix and find cocktials based on your ingredients. CocktailFinder is a simple example application for programming with HTML, JavaScript, PHP and a MySql database.
Deutsch (German):
Mixe und finde Cocktials anhand deiner Zutaten. CocktailFinder ist eine einfache Beispielanwendung für die Programmierung mit HTML, JavaScript, PHP und einer MySql-Datenbank.
- Try it LIVE.
- The Admin-Interface which is used to add new cocktails into the list is located at
https://cocktailfinder.yaaw.de/add.html
- PHP used for back-end
- MySql used for database
- jQuery, Bootstrap4 used for front-end
- Create MySql Database. Import
\docs\Database\cocktail.sql
- Create
secrets.php
into\core\
:<?php // MySql secrets define('DB_HOST', 'localhost'); define('DB_USER', 'DB_USER'); define('DB_PASSWORD', 'DB_PASSWORD'); define('DB_DATABASE', 'DB_DATABASE'); // Common define('CORS', 'https://cocktailfinder.yaaw.de'); define('ADMIN_PASSWORD', 'ADMIN_PASSWORD'); ?>
- Check
url
variable within\assets\js\app.js
and\assets\js\add.js
to locate the running backend.
- Change CORS-Headers to your domain.
- Disallow calling, remove completely
\core\control\saveCocktail.php
or set a very strongADMIN_PASSWORD
.