Skip to content

grrbm/chat-mern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents

About The Project

Product Name Screen Shot

This project is a straightforward chat application. It uses websockets for communication between server and clients, and updates the chat screen in real time.

Built With

The project was built with the MERN stack for web development (MongoDB, Express, React.js, Node.js)

Installation (Windows)

The application can be installed and tested in a few simple steps.

  1. Clone the repo, and open the cloned repo's folder.
git clone https://github.com/grrbm/chat-mern.git
  1. Open 'backend' folder and install
npm install
  1. Open 'frontend' folder and install
npm install
  1. Open a new terminal and run MongoDB
mongod
  1. Open a second new terminal, and run the server from the project root
npm run server
  1. Open a third new terminal, and run the client from the project root
npm start

Usage

As a Regular User, your basic use case is to join the chat room to send/receive messages. When a new username and password combination is used on the Join Screen (one that the server hasn't seen before), a new User is created in the database via a call to the backend.

You can also login as an Admin, for testing purposes. The admin credentials are populated in the database the first time you run the server. The admin credentials are the following:

username: admin
password: adminpass

Product Name Screen Shot

As an admin, you have access to the Admin Area panel.

You can use this panel to filter the chat's messages by Date and Time, as well as by username. It's also possible to reverse the order the chat's messages appear, Newest or Oldest messages first.

Product Name Screen Shot

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Guilherme Reis - LinkedIn - Portfolio - [email protected]

Project Link: https://github.com/grrbm/chat-mern

Acknowledgements

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published