jetrosuni / craft-beer-finder-frontend-vue

Craft Beer Finder (Vue PWA Frontend)

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Craft Beer Finder (Vue PWA Frontend)

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


Languages

Language:Vue 84.6%Language:TypeScript 9.2%Language:CSS 1.9%Language:JavaScript 1.5%Language:Dockerfile 1.4%Language:HTML 1.3%Language:SCSS 0.1%