Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.
/ nuxt-shared-auth Public archive

Nuxt.js shared authentication using postMessage.

Notifications You must be signed in to change notification settings

rasyidly/nuxt-shared-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nuxtjs shared authentication using postMessage

nuxt-shared-auth

This is only work in SinglePage Application (mode: spa) only

Build Setup

Im using yarn here, if you use npm, just change yarn to npm run

Installing dependencies

# install dependencies
$ yarn install

Lets write a code

# serve ACCOUNT with hot reload at localhost:3000
$ yarn account:dev
# serve BLOG with hot reload at localhost:3001
$ yarn blog:dev
# serve ACCOUNT & BLOG with concurrently
$ yarn dev

Build or generate

# build for production and launch server
$ yarn account:build | yarn blog:build | yarn build

# generate static project
$ yarn account:generate | yarn blog:generate | yarn generate

For detailed explanation on how things work, check out Nuxt.js docs.

About

Nuxt.js shared authentication using postMessage.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published