Git Product home page Git Product logo

varie's Introduction

About Varie

Varie is a Typescript framework for rapidly building powerful and elegant Vue.js applications. Bringing in concepts from other languages to speed up your development. Whether working in a small / large teams, Varie elevates your starting point to ramp into development.

Notable Features

  • Validation
  • CLI Plugin
  • Fluent Router
  • State Management
  • Request Middleware
  • Authentication System
  • Customizable Modern Bundler
  • Dependency Injection System (DI)

Official Documentation

Documentation for Varie can be found on the Varie website.

License

The Varie framework is open-sourced software licensed under the MIT license.

varie's People

Contributors

lukepolo avatar meteguerlek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

varie's Issues

`nvm run watch` Fails

It appears that running nvm run watch fails in my environment:

npm run watch

> @ watch /Users/mike/Developer/Sites/xxxx
> webpack-dev-server --mode development --hot

clean-webpack-plugin: /Users/mike/Developer/Sites/xxxx/public has been removed.
events.js:165
      throw er; // Unhandled 'error' event
      ^

Error: getaddrinfo ENOTFOUND varie.test
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
Emitted 'error' event at:
    at GetAddrInfoReqWrap.doListen [as callback] (net.js:1495:12)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:17)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ watch: `webpack-dev-server --mode development --hot`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @ watch script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/mike/.npm/_logs/2018-07-04T01_48_38_409Z-debug.log

The work-around for me has been to add the localhost IP address to the watch command in packages.json:

    "watch": "webpack-dev-server --mode development --hot --host 127.0.0.1",

Running `npm run watch` opens the site using the external URL, which doesn't resolve.

When running npmn run watch, the browser tries to open to http://varie.test:3000, but that is not resolvable:

screen shot 2018-07-03 at 7 17 08 pm

However, accessing the site under http://localhost:3000 works perfectly. Changing the configuration in webpack.config.js to say localhost worked:

  const config = {
    appName: "Varie",
    host: "localhost",

I suppose the presumption here is that the developer has the domain entry in their hosts file. Maybe adding a paragraph to the docs would help those unfamiliar with the project (idiots like me). hehe

Nested Components Issue

I've noticed that when using a component within a component that sometimes Varie will freak out.

Example being:

Core.vue Layout
    - imports CoreHeader.vue
        - imports CoreNavigation.vue
            - router-link

The above is how I do things outside of Varie and it works just as expected. However Varie claims that <router-link> is not a registered component.

If I do the following instead, it works...

Core.vue Layout
    - router-link (moved up 2 layers)
    - imports CoreHeader.vue
        - imports CoreNavigation.vue

It seems that when I nest <router-link> one additional component layer it is not resolving correctly.

Even placing <router-link> inside of CoreHeader.vue produces the same error.

Documentation for Models

  • Varie Version: 0.3.3
  • Node Version: 10.5.0

Description:

I'm working through the documentation to try to get my app started. I was curious about how models are used, and didn't see anything in the documentation, or the varie/varie.io repo. :) Thanks!

Issue w/ expectations around Routes, Router Views, Parent Layouts, and Prefixes

Current routes/index.ts
image

Expectation for going to /people
corelayout

Would like to see Core absorbed as the primary layout which has a <router-view> loading resources/views/people/layout.vue with its own <router-view> that loads resources/views/people/index.vue.

The current functionality is a bit wonky and depending on how I reference the path within .template() or .route() I am unable to achieve the desired effect.

Catch All Route - Catches too much

$router.route("*", "404");

Whether I put this towards the top or the bottom of my routes/index.ts it is catching too many routes, even routes that are previously specified; before or after does not change.

I can give more info if asked. Just wanted to quickly capture this issue before I forget.

CSS Issue w/ routes/index.ts

Generated routes are noted as acting weird in a previous issue. This was an additional example of it interfering with linked stylesheets. You'll notice the CSS file loading from /people/css when it should be coming directly from /css.

Current URL

image

CSS URL

image

Route Structure

image

NVM Is Expected In `varie` CLI Command

When running varie new xxxx I get the following error if NVM is not installed:

varie new xxxx
✔ Created xxxx
✖ Error: Command failed: cd /Users/mike/Developer/Sites/xxxx && export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && nvm use && npm install

Axios development issue

this property for catch method is undefined. tried only with dev version

...
.catch(error => {
    this....
})

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.