Customer live chat Management System with NodeJS, Express,React, EJS and SocketIO for the Semester 4 Software Engineering Project.
- Clone the project.
-
Copy
.env.examplefile and name it as.env. -
Set up necessary varaibles like
PORT,NODE_ENV. -
Run
npm installcommand 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\reactdirectory. - Run the command
npx babel --presets @babel/preset-react all-chats-component.js --out-file compiled-all-chats-component.js --source-mapsin the terminal. - This will compile the React JSX component to the file
compiled-all-chats-component.jswith source maps.