Skip to content

JWT(JSON Web Tokens) Certification Authorization Front

Notifications You must be signed in to change notification settings

webcyou-org/jwt-front

Repository files navigation

JWT(JSON Web Tokens) Certification Authorization FrontEnd - Nuxt

What are JSON Web Tokens?

JWT

FrontEnd Framework List

and more...

Select FrontEnd Framework

  • Nuxt.js

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

Build Setup

Local Server Develop

# install dependencies
$ npm install

# serve with hot reload at localhost:3000
$ npm run dev:local

# build for production and launch server
$ npm run build
$ npm start

# generate static project
$ npm run generate

Server Framework Develop

# install dependencies
$ npm install

# serve with hot reload at localhost:3333
$ npm run dev

# build for production and launch server
$ npm run build
$ npm start

# generate static project
$ npm run generate
  • FrontEnd Local Host: localhost:3333
  • Server Local Host: localhost:3000

Use npm Package

AuthModule Package

API EndPoints

Host

http://localhost:3000 or http://localhost:3333

EndPoints

url method details
/api/v1/user_token POST Create Access Token (User Login)
/api/v1/users POST Create new account
/api/v1/users DELETE User Logout
/api/v1/users GET Login User Show

Default User

name email password
daisuke.takayama [email protected] test123

Author

Daisuke Takayama

License

Copyright (c) 2019 Daisuke Takayama Released under the MIT license