Skip to content

A VueJS + Vue-Router + Vuex + Axios + Vuetify project for manage VPS

Notifications You must be signed in to change notification settings

chandyalexcr/gochandycp-frontend

Repository files navigation

GoChandy GoChandyCP (frontend)

This is Vue.js project made for the management of VPS through web interface (SPA) involving a wide of technologies.

NOTES
  • The project stills in development and this is only the base for now, almost all the features are pending to develop.
  • The API code are not available in this repo (still private)
PREVIEW
  • Dashboard

Dashboard

  • Domain List

Domain List

Technologies

  • Based on the Webpack template of VueJS-Cli
  • Vue-Router for handling app routes
  • Vuex for management of the app states
  • Axios for make request to a server (API Requests)
  • Vuetify for beautiful material design components

Features

  • Get VPS server information
  • Manage Nginx domains
  • Manage database engines
  • Manage services
  • Manage Firewall
  • Manage OpenVPN ... and more

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

Others

The implementation of Axios has been made globally, so any component can access the $axios for make its own request in this way:

export default {
  data () { },
  created () { },
  methods: {
    methodName () {
      this.$axios.get('http://some-resource.url/here')
      .then(response => { })
      .catch(e => { })
    }
  }
}

Router components are loaded in LazyLoad way as described here, so router loads the component when it is needed and not at first page load:

// Lazy Loading
const Dashboard = resolve => require(['@/components/Dashboard'], resolve)
const DomainList = resolve => require(['@/components/DomainList'], resolve)

Usefull Links

For detailed explanation on how things work, checkout the guide and docs for vue-loader.

About

A VueJS + Vue-Router + Vuex + Axios + Vuetify project for manage VPS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published