A simple project with only one button for Google sign in, take the 3 steps below
- Create a .env file from the example one and fill it with your credentials
- Create a app.html file from the example one to add some script tags for Google API stuff
- You are now good to go, use the GoogleSigninButton.vue as you want, it's the core of this example
The access_token and currentUser got from logging in is stored in Vuex Store's state
Check out https://github.com/thecodeorigin to start your project faster
# install dependencies
$ npm install
# serve with hot reload at localhost:3000
$ npm run dev
# build for production and launch server
$ npm run build
$ npm run start
# generate static project
$ npm run generate
For detailed explanation on how things work, check out Nuxt.js docs.