Customer live chat Management System with NodeJS, Express,React, EJS and SocketIO for the Semester 4 Software Engineering Project.
- Clone the project.
-
Copy
.env.example
file and name it as.env
. -
Set up necessary varaibles like
PORT
,NODE_ENV
. -
Run
npm install
command in the terminal. -
Use
start
(node) orstart-dec
(nodemon) script to start the server.
The React Chat Component has been built using Babel. Therefore, in a production environment Babel needs to be compiled.
babel/cli
, babel/core
and babel/preset-react
is used for this purpose.
- Navigate to the
public\assets\js\custom\react
directory. - Run the command
npx babel --presets @babel/preset-react all-chats-component.js --out-file compiled-all-chats-component.js --source-maps
in the terminal. - This will compile the React JSX component to the file
compiled-all-chats-component.js
with source maps.