Skip to content

eduardo202020/another-MERN-chat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Another MERN Chat application

Chat application based on MERN(Mongo, Express, React, Node) stack, I chose this stack because it allows us to write Javascript code on the backend and frontend and also I like writing code for the client with React.

Description

Is a very basic chat application, my intention here is to create an http server without the need to follow Restful constraints or anything, it helped me to understand nodejs and express features and more important to have fun. Also I tried to keep the client application simple, so it doesn't use any CSS-in-JS library and as I don't have plans to scale this application or use it in the real world I did't write tests.(You should write them)

Deployed

It is deployed on heroku you can take a look at this link

Preview

users chats channel

Run it locally

Server

1- Create mongo database: I used the mongodb altas platform for creating and managing one.Later you will need to create a user/password in order to connect the server with the DB.

2- Create .env in the root path / file and your variables

DB_NAME=core-xyz.gcp.mongodb.net
DB_USER=db_user_value
DB_PASSWORD=db_password_value

2- Install node packages and then run

npm install
npm run dev:server

Client

1- Move to client project cd ./client and then create a .env file like the following

DEV_API="http://localhost:8000"
PROD_API="https://esquinazi-nodejs-react-chat.herokuapp.com"

2- Install dependencies and run de project.

npm install
npm start

Reference

Based and inspired on a nodejs platzi course.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 57.1%
  • JavaScript 34.2%
  • HTML 6.3%
  • CSS 2.4%