Skip to content

IN4111/BPO-Chat-Box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation


BPO Chat Box with Java, Tomcat, Servlet, and Websocket

This project comprises a Java web application with a front-end designed by Binary-Shade and a back-end developed by IN4111.

File Setup:

Ensure the Servlet folder is placed in the following directory structure:

.
├── Apache-Tomcat
│   ├── lib
│   │   └── servlet-api.jar
│   ├── conf
│   │   └── server.xml
│   └── webapps
│       └── XpertBPOSolutions
│           ├── WEB-INF
│           │   ├── classes
│           │   │   ├── BPOServlet.java
│           │   │   └── BPOServlet.class
│           │   └── web.xml
│           ├── index.html
│           ├── script.js
│           └── style.css  

Project Demo:

2024-03-03.14-46-21.mp4

Compiling the Code:

Navigate to the Apache-Tomcat/webapps/WEB-INF/classes directory and compile the servlet Java class BPOServlet.java using the following command:

javac -cp ../../../../lib/servlet-api.jar BPOServlet.java

Running the Server:

Ensure that the $JAVA_HOME variable is set and run the server using the command:

./Apache-Tomcat/bin/startup.sh

Hosting:

After compiling the Servlet class and running the Apache server, access the home page at http://localhost:8888/XpertBPOSolutions/index.html.

Changing Port Number:

To change the port number, open the server.xml file located in Apache-Tomcat/conf/server.xml and modify the port number specified within the <Connector> tag. After making changes, restart the server.

<Connector port="8888" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443"
               maxParameterCount="1000"
               />

Server Shutdown:

To shut down the server, execute the following command:

./Apache-Tomcat/bin/shutdown.sh

Feel free to customize it further according to your preferences or additional instructions! 🚀

About

BPO Chat Box With JAVA Servlet and Java WebSocket

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •