Skip to content

Latest commit

 

History

History
79 lines (57 loc) · 1.83 KB

README.md

File metadata and controls

79 lines (57 loc) · 1.83 KB

Web chat with React Js, Node.js and Docker


Table of Contents

  1. Steps
  2. Front-End
  3. Back-End
  4. Docker-Container
  5. Install and run

Steps

There are three steps to build this project, like we can see in this image below. How we can see the core of this project are: React Js, Node.js and Docker Container.



chat-react-node.js

The front-end and the back-end are developed in parallel, and finally the docker image are built to run the three containers.

All the dependencies are in each dir in package.json file

Front-End

Authentication Guard System

The AuthGuard protect the pages that need the user sign in, redirecting to login page.

To verify the user state was implemented a context and to store the user data I use React-Redux.

The main folders of "AuthGuard System" are: contexts, hooks, store and utils.

Pages

  • Register page;
  • Login page;
  • Recovery (password) email page;
  • Verify code page;
  • Reset password page;

Back-End

Behind the scene activities, we need a database to keep our data safe and available. The endpoints (routes) to serve the requests from the front-end are distributed in:

  • Routes of register and password recovery:
    • user register;
    • reset password;
    • verify code (two factors authentications).
  • Login routes:
    • Verify password;
    • Verify code.
  • Contacts routes:
    • search users;
    • add contact;
    • contacts list.
  • Chat routes:
    • chat-private-room;
    • chats list.
  • Socket.io events:
    • send message;
    • send notification. ...

Docker-Container

...

Install and run

...