Skip to content

It is the boilerplate of authentication using JWT in the SPA of React-Redax.

Notifications You must be signed in to change notification settings

nabeliwo/jwt-react-redux-auth-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jwt-react-redux-auth-example

It is the example of authentication using JWT in the SPA of React-Redax. It doesn't support server-side rendering.

Get started

$ git clone [email protected]:nabeliwo/jwt-react-redux-auth-example.git

$ cd jwt-react-redux-auth-example
$ npm install
$ npm run build-js # build bundle.js

In order to launch the server, and then prepare a config file.

// config/default.json

{
  "host": "127.0.0.1",
  "secretKey": "your secret key"
}
# run
$ npm run dev # to develop
# Server running at: http://localhost:3000

# develop
$ npm run watch-js # watchify
$ npm run lint # eslint

Detail

JSON Web Tokenを使ってReactとReduxのSPAでログイン認証をする

About

It is the boilerplate of authentication using JWT in the SPA of React-Redax.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published