Skip to content

Binary-Shade/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 and Java Servlet

This project comprises a 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

Languages

  • CSS 32.9%
  • JavaScript 28.1%
  • Java 20.0%
  • HTML 19.0%