Skip to content

AdrianCatrinoiu/kafka-nodejs-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kafka-nodejs-auth-flow

Kafka Authentication Flow using NodeJS

Table of contents

General Info

Full-stack React,NodeJS Auth SPA which uses Kafka on the backend side for decoupling backend components.

How it works

  • The user can either register, login or view User details in the React Web App and the authentication flow is done using JWT tokens with rotation (refresh tokens).
  • It uses Redis for in memory data storage of user details.
  • The relationship between endpoints and the data store is done using a Kafka Topic (called 'users'), a Producer and a Consumer.
  • Producer, Consumer and React-ui have their own Dockerfile and are defined together in docker-compose.

Backend Technologies

  • NodeJS version: 16.16.0
  • Express version: 4.17.1
  • Redis version: 4.3.0
  • Kafka-node version: 2.6.1
  • JWT version: 8.5.1

Frontend Technologies

  • React version: 17.0.2
  • Reduxjs/toolkit version: 1.8.5
  • Formik version: 2.2.6
  • React Router version: 6.3.0
  • Yup version: 0.32.9

Frontend

Screenshot 2022-09-04 at 23 23 12 Screenshot 2022-09-04 at 23 22 18 Screenshot 2022-09-04 at 23 13 02

Setup and running

To run this project locally, use Docker:

$ docker-compose up

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published