GithubHelp home page GithubHelp logo

markcheno / go-vue-starter Goto Github PK

View Code? Open in Web Editor NEW
189.0 15.0 40.0 1.02 MB

Starter project - Golang api, Vue.js client with user management and jwt authentication

License: MIT License

Go 33.59% JavaScript 49.28% HTML 1.90% Vue 15.23%
golang vuejs2 gorm-orm negroni api-server spa jwt-authentication boilerplate starter-template

go-vue-starter's Introduction

go-vue-starter

Copyright 2017 Mark Chenoweth

Golang Starter project with Vue.js single page client

Work in progress...

Features:

TODO:

  • config from file

  • email confirmation

  • logrus

  • letsencrypt tls

To get started:

# clone repository
go get github.com/markcheno/go-vue-starter
cd $GOPATH/src/github.com/markcheno/go-vue-starter

# install Go dependencies (and make sure ports 3000/8080 are open)
go get -u ./... 
go run server.go

# open a new terminal and change to the client dir
cd client

# install dependencies
npm install

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

# build for production with minification
npm run build

License

MIT License - see LICENSE for more details

go-vue-starter's People

Contributors

dependabot[bot] avatar johnsome avatar markcheno avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

go-vue-starter's Issues

Problem with basic installation


vxv@vxl:~$ go get -x github.com/markcheno/go-vue-starter

<<many lines of output, everything installs just fine up to this point>>

vxv@vxl:~$ GOPATH=~/go/
vxv@vxl:~$ cd $GOPATH/src/github.com/markcheno/go-vue-starter
vxv@vxl:~/go/src/github.com/markcheno/go-vue-starter$ go get -u ./...
# github.com/markcheno/go-vue-starter/models
models/users.go:66:23: multiple-value uuid.NewV4() in single-value context

vxv@vxl:~/go/src/github.com/markcheno/go-vue-starter$ go version
go version go1.9.2 linux/amd64

sql: database is closed

I use postgresql server ,When I go run server.go ,I got

(sql: database is closed)
[2018-07-20 11:36:04]

(sql: database is closed)
[2018-07-20 11:36:04]

(sql: database is closed)
[2018-07-20 11:36:04]

(sql: database is closed)
[2018-07-20 11:36:04]
[negroni] listening on :3000

ESLint error when following install instructions

Attempting to learn VUE + Go + Docker for a take home assignment, thought this would be great but I'm unable to get the front end running. Followed install instructions, but this is what I'm getting when I run 'npm run dev'

`> [email protected] dev ~/go/src/github.com/markcheno/go-vue-starter/client

node build/dev-server.js

[HPM] Proxy created: /api -> http://localhost:3000/api
[HPM] Proxy rewrite rule created: "^/api" ~> ""

Starting dev server...

ERROR Failed to compile with 1 errors 6:05:04 PM

error in ./src/main.js

Module build failed: Error: eslint-plugin-html error: It seems that eslint is not loaded. If you think it is a bug, please file a report at https://github.com/BenoitZugmeyer/eslint-plugin-html/issues
at iterateESLintModules (/Users/samwise/go/src/github.com/markcheno/go-vue-starter/client/node_modules/eslint-plugin-html/src/index.js:65:11)
at Object. (/Users/samwise/go/src/github.com/markcheno/go-vue-starter/client/node_modules/eslint-plugin-html/src/index.js:36:1)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Plugins.load (/Users/samwise/go/src/github.com/markcheno/go-vue-starter/client/node_modules/eslint/lib/config/plugins.js:101:26)
at Array.forEach ()
at Plugins.loadAll (/Users/samwise/go/src/github.com/markcheno/go-vue-starter/client/node_modules/eslint/lib/config/plugins.js:146:21)
at loadFromDisk (/Users/samwise/go/src/github.com/markcheno/go-vue-starter/client/node_modules/eslint/lib/config/config-file.js:492:35)
at Object.load (/Users/samwise/go/src/github.com/markcheno/go-vue-starter/client/node_modules/eslint/lib/config/config-file.js:550:20)
at Config.getLocalConfigHierarchy (/Users/samwise/go/src/github.com/markcheno/go-vue-starter/client/node_modules/eslint/lib/config.js:228:44)
at Config.getConfigHierarchy (/Users/samwise/go/src/github.com/markcheno/go-vue-starter/client/node_modules/eslint/lib/config.js:180:43)

@ multi ./build/dev-client ./src/main.js

Listening at http://localhost:8080
`

Googling seems to be a eslint-plugin-html version issue, and forcefully upgrading it to 6.0.0 still has things failing with specific lint errors. Got some warnings about needing to upgrade webpack at the same time. Have a feeling this is a pretty basic error when you've use this env before, but as everything is completely new I'm lost.

Backend seems to be running ok.

Error on getting userinfo

Hi,

I've just downloaded your code to learn about go and jwt. When trying to access the userinfo api i received a message, that I could not figure what is the problem. I hope you can help me undestand:

[negroni] PANIC: interface conversion: interface {} is nil, not *jwt.Token

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.