creativetimofficial / vuetify-material-dashboard

Vuetify Material Dashboard - Open Source Material Design Admin by Creative Tim
https://www.creative-tim.com/product/vuetify-material-dashboard
MIT License
1.31k stars 941 forks source link

I'm trying to use vuetify-material-dashboard with backend golang #26

Open Vermouth-Singed opened 5 years ago

Vermouth-Singed commented 5 years ago

1. I downloaded vuetify-material-dashboard recently and having a problem building a project. I added a line in vue.config.js

const path = require('path') if (process.env.NODE_ENV === 'production') { module.exports.publicPath = path.resolve(__dirname, './dist') }

and could see it has no errors when 'vue-cli-service build'. But I found out vue-router doesn't work properly. There are two things I want to figure it out.

  • I want to build a project which can see and add with golang.
  • It's annoying that whenever I build vue project, it comes to dist folder. How can I change the link but follows the rootPath successfully.

2. Let's suppose that I build a project successfully, I have no idea how to link with golang and vue project. I added a folder in vue project folder to control backend for go lang. I am trying to use gin or gorilla, but not http which golang provides. Would anyone show me a sample code which could link both sides frontend and backend?

Vermouth-Singed commented 5 years ago

Is it possible to open in different port such as 3000 for vuejs and 8000 for golang and connect together?? Am I doing it right? I'm not sure. I'm just trying my best I could...