-
public
contain entry point and css into the project -
src
contain source files -
.storybook
contain init files to runStorybook-vue
-
tests
contain tests files -
stories
contain stories, which are page definitions for Storybook. Stories allows you to visually examine individual component/page without navigating through the app
-
assets
contain static files such as images used by the project -
components
contain subparts used to create individualviews
-
logic
contain utility functions or calls to external services -
views
contain individual "pages". Each page is associated with a routing target
index.html -> main.js -> App.vue -> "views"
App.vue
is injected into a <div id='app'>
element inside index.html
. main.js
serves as the initialization file for Vue and controls this injection. Depending on user input each file in views
is rendered inside a <div>
in App.vue
. route.js
defines routes connecting views
together as well as routing behavior such as redirection for unauthorized users. store.js
is used to store app level states that are shared across individual views, maintaining consistency across navigation.
- Add
secrets.js
file intologic
folder which includes your Firebase key and OpenWeather API key.
The file should be structured as such:
export function firebaseKey(){
// YOUR KEY HERE
}
export function openWeatherKey(){
// YOUR KEY HERE
}
-
npm install
oryarn install
all required packages -
firebase login
-
firebase init
, choosefirestore
andhosting
. Associate deployment folder todist
-
npm run build
oryarn run build
, which should populatedist
folder -
firebase deploy
yarn install
yarn run serve
yarn run build
yarn run test
yarn storybook
yarn run lint
yarn run lint --fix
yarn run test:unit