Skip to content
akocakayaPublic

About

JSON Web Token authentication example.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

40 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

JWT Example

JWT Example is an app that how to manage access and refresh token via cookie. You can basically register, login, see other registered users and logout.

Technical Details

For backend it's Express.js and for database it's uses PostgeSQL. And for the login obviously it is using JSON Web Token authentication. For frontend i used React.js and React Router DOM.

How to Run

For backend

  • Create ./server/.env file. The parameters are in .env.example
  • Setup database settings inside ./server/ormconfig.json file
  • Download PostgreSQL v11.10 from here
  • Create db named jwt-auth-example
  • Run yarn
  • And finally run yarn start
  • You should see GraphQL Playground http://localhost:4000/graphql

For frontend

  • If this folder is not exist ./web/src/generated/ run this yarn gen
  • Run yarn
  • And go with yarn start

About

JSON Web Token authentication example.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages