A project by Das Quadrumvirat. Initially created during VISCON 2022.
An app to list, browse and interact with cocktail and drink recipies.
Using data from The Cocktail DB
Available online at cocktailcoach.vypxl.io.
You will need Docker
, nodejs >= 16
and pnpm
, python 3
and the pip packages python-slugify
, python-dotenv
installed.
To fire up a local development environment, follow these steps:
- Create a
.env
file and setPOSTGRES_PASSWORD
andMEILIKEY
to some values and set a postgres and meili database url, e. g.
POSTGRES_PASSWORD=securepw
DATABASE_URL="postgresql://cocktailcoach:securepw@localhost:5432/db?schema=public"
MEILIKEY=securekey
MEILIURL=http://localhost:7700
- Run
docker compose -f docker-compose-dev.yml up -d
to start up the databases - Run
pnpm i --shamefully-hoist
to install the packages - Run
pnpm prisma migrate dev
andpnpm prisma generate
to generate set up the postgres db - Insert the data into the db.
./data/insert_data.py
- Create a search api key:
curl -X POST "$MEILIURL/keys" -H "Authorization: Bearer $MEILIKEY" -H "Content-Type: application/json" --data-binary '{"actions": ["*"], "indexes": ["*"], "expiresAt": null}'
- Save the generated search key into
.env
asMEILI_SEARCH_KEY
- Run
pnpm run dev
to start the dev server