Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 882 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 882 Bytes

Nuxt with Google sign in example

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

Build Setup

# 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.