Skip to content

jetrosuni/craft-beer-finder-frontend-vue

Repository files navigation

craft-beer-finder-frontend-vue

Craft Beer Finder PWA

Live demo

https://www.jetrosuni.com/helsinki-craft-beer-finder/

Project setup

npm install
  • Copy the content of .env.example file to .env.local & .env.production.local and make all the needed adjustments (e.g. change the VITE_CRAFT_BEER_FINDER_API_URL value to match the real backend URL).
  • Copy a full set of country coded svg flags to /public/img/flags/ (e.g. from here: https://github.com/hjnilsson/country-flags)

Development

docker compose up
http://localhost:9980

PWA Assets

To (re)generate:

docker exec craft-beer-finder-frontend-vue npm run generate-pwa-assets

Compiles and minifies for production

npm run build

Backend

  • The backend is not currently OSS
  • Here's an example of the API response structure:
[
  {
    "beerId": 3860521,
    "name": "Brewery - Name of the beer",
    "country": "GB",
    "style": "dark",
    "styleName": "Stout - Imperial \/ Double Coffee",
    "rating": 4.57,
    "ratingCount": 199,
    "venues": [
      {
        "name": "Bar 1",
        "daysAgo": 4
      },
      ...
    ]
  },
  {
    ...
  }
]

Credits

License

Craft Beer Finder by Jetro Suni is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. Based on a work at https://github.com/jetrosuni/craft-beer-finder-frontend-vue.

Creative Commons License