GithubHelp home page GithubHelp logo

iliutastoica / greekdev-template-vue-spa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jmccar/greekdev-template-vue-spa

0.0 2.0 0.0 239 KB

Vue.js S.P.A. template by Greek Developer

JavaScript 37.79% Vue 38.98% HTML 22.40% CSS 0.83%

greekdev-template-vue-spa's Introduction

Single Page Application Template with Vue.js / Vuex / Vue-Router

This is a template for a single page application using vue, vuex & vue-router. Routes are defined in ./src/web/_routes.js and the global state management is defined in ./src/web/_store.js

Installation

  • npm i -g parcel-bundler
  • npm install
  • npm run dev

Project layout

  • Source code is located in ./src/

    • web app source code is located in ./src/web/
    • PWA manifest file should have a .webmanifest extension for compatibility with parcel.
  • Distributable artifacts are generated in ./dist/

    • web app artifacts are generated in ./dist/web/

Developing

Add new page/route

  1. Create a new .vue file (preferably in ./src/web/vues/)
  2. Edit ./src/web/_router.js
    1. Add an import statement for the new file (ex import newpage from ./src/web/newpage.vue)
    2. Add a route for the new file (ex { path: '/newpage', component: newpage })

Tips

build dependency graph...

depcruise --exclude "^node_modules" --output-type dot src | c:\resources\bins\graphviz-dot\dot -T svg >dependencygraph.svg

greekdev-template-vue-spa's People

Contributors

sarmis avatar

Watchers

Iliuta Stoica avatar  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.