Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.39 KB

README.md

File metadata and controls

31 lines (22 loc) · 1.39 KB

Cocktailcoach

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.

Development

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:

  1. Create a .env file and set POSTGRES_PASSWORD and MEILIKEY 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
  1. Run docker compose -f docker-compose-dev.yml up -d to start up the databases
  2. Run pnpm i --shamefully-hoist to install the packages
  3. Run pnpm prisma migrate dev and pnpm prisma generate to generate set up the postgres db
  4. Insert the data into the db. ./data/insert_data.py
  5. 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}'
  6. Save the generated search key into .env as MEILI_SEARCH_KEY
  7. Run pnpm run dev to start the dev server