genkio / vue-better-practices

Show cases better practices of developing Vue.js apps

Home Page:https://vue-better-practices.firebaseapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vue-better-practices

This project show cases some of the better practices I accumulated when developing Vue.js apps

Live Demo

https://vue-better-practices.firebaseapp.com/

Tech Stacks

App Features

  • Responsive UI
  • Categorized shop items list view
  • Navigation between list and detail view
  • Client side search

UI Component Hierarchy

Timeline

timeline

ItemDetail

detail

Development

# Use Node.js version 8+ for local development
# nvm use 8.x.x

# install client dependencies
npm install

# install api dependencies and serve api
cd functions && npm install && npm run serve && cd ..

# create dotenv config and add your locally served api url to it
cp ./.env.example ./.env

# serve ui with hot reload at localhost:1234
npm run dev

Deploy

# deploy database rules
npm run deploy:db

# deploy api to cloud function
npm run deploy:api

# deploy to firebase hosting
npm run deploy:ui

TODO

  • Replace scoped css with css module
  • Implement like feature

About

Show cases better practices of developing Vue.js apps

https://vue-better-practices.firebaseapp.com/


Languages

Language:Vue 66.3%Language:JavaScript 30.2%Language:CSS 1.8%Language:HTML 1.7%