Giter Club home page Giter Club logo

yjack0000 / vc-kungfu Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 5.39 MB

2023年Young Lions Competition 坎城全球青年創意競賽台灣代表隊選拔賽台灣區域賽隊伍。我們提出了將肺中空氣結合功夫真氣的構想,想要製作一款能夠檢測自己肺活量的應用程式(VC Kung Fu)。

Home Page: https://vc-kungfu.web.app/

License: MIT License

JavaScript 16.85% HTML 7.65% Vue 47.19% CSS 0.76% TypeScript 27.56%
firebase-database pwa pwa-app vue web-audio website

vc-kungfu's Introduction

VC-kungfu

2023年Young Lions Competition 坎城全球青年創意競賽台灣代表隊選拔賽台灣區域賽隊伍,並在當初比賽獲得了台灣區第四名的成績。

介紹

我們提出了將肺中空氣結合功夫真氣的構想,製作一款能夠透過網頁遊戲檢測自己肺活量的網頁應用程式(VC Kung Fu)。使用 Web Audio API 來偵測使用者的聲音可否持續,並透過 Firebase 來儲存使用者的資料。並針對不同檢測結果,提供不同的網頁內容,讓使用者能夠了解自己的肺活量狀況。

這個專案嘗試了什麼酷東西

  • PWA Support -> 可以直接將網頁安裝在手機桌面中,並作為應用程式來執行。
  • Web Audio -> 使用 @vueuse/core 封裝的 Web Audio API 以作為在專案中的聲音偵測相關工具。
  • SPA-based Game -> 整個遊戲都是透過 Vue 加上 CSS 來作為渲染工具,而不是使用 Javascript Game Engine。
  • CI -> 透過 Github Action 做 CI,並且部署到 Firebase 上。

Firebase Config 設定

在 .env 裡面設定 firebase 的 config,如下:

FIREBASE_API_KEY=<YOUR_FIREBASE_API_KEY>
FIREBASE_AUTH_DOMAIN=<YOUR_FIREBASE_AUTH_DOMAIN>
FIREBASE_PROJECT_ID=<YOUR_FIREBASE_PROJECT_ID>
FIREBASE_STORAGE_BUCKET=<YOUR_FIREBASE_STORAGE_BUCKET>
FIREBASE_MESSAGING_SENDER_ID=<YOUR_FIREBASE_MESSAGING_SENDER_ID>
FIREBASE_APP_ID=<YOUR_FIREBASE_APP_ID>
FIREBASE_MEASUREMENT_ID=<YOUR_FIREBASE_MEASUREMENT_ID>

開發

npm install
npm run dev

部署

npm run build
npm run deploy

另外有整合 CI/CD,只要將程式碼 push 到 master branch,就會自動部署到 firebase hosting 上。

vc-kungfu's People

Contributors

yjack0000 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.