Code Monkey home page Code Monkey logo

chat-application-mern's Introduction

MERN realtime Chat Application with Authentication

App Node JS npm Express JS

Introduction

The MERN stack which consists of Mongo DB, Express.js, Node.js, and React.js is a popular stack for building full-stack web-based applications because of its simplicity and ease of use. In recent years, with the explosive popularity and the growing maturity of the JavaScript ecosystem, the MERN stack has been the goto stack for a large number of web applications. This stack is also highly popular among newcomers to the JS field because of how easy it is to get started with this stack

This repo consists of a Chat Application built using MERN stack and user authentication using JWT token and cookies. The chat system uses the SocketIO for real-time communication between the client.

Features

  • User Login and Register
  • Authentication using JWT Tokens
  • React State management using REDUX
  • Realtime Chat

How to use it

You can have this application up and running with just a few steps because it has both the frontend and the backend in a single repository. Follow the steps below to do so.

  1. Clone this repo
  2. Once you have the repo, you need to install its dependencies. So using a terminal, move into the root directory of the project and execute npm install to install the dependencies of the frontend. Now go inside the backend directory and execute npm install to install the dependencies of the backend API server. Go inside the socket directory and execute npm install to install the dependencies of the socket server.
  3. To run the frontend excute npm start in your root directory.
  4. To run the socket server, cd socket to the socket directory and execute npm run socket
  5. NOTE Before running the backend server you need to rename the .env(sample) file to .env and change the necessary environment variable.
  6. Run the backend server, cd backend to the backend directory and execute npm run server

chat-application-mern's People

Contributors

merenlmtr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.