This project is an e-commerce bidding site where users can bid on cats, purchase all kinds of cats, and then checkout and have them delivered! 😻 It consists of several components: an authentication service, a bidding service, a payment service, and a web frontend.
This project is a Java web application that demonstrates user authentication using servlets and WebSockets. It allows users to log in and interact with a WebSocket endpoint.
- Make sure you have Java and Maven installed.
- Navigate to the
Authentication
directory. - Build the project using Maven:
mvn clean install
- Deploy the generated WAR file (located in the
target
directory) to a servlet container such as Tomcat. - Access the application through your browser at
http://localhost:8080/Authentication/
. - You can interact with the WebSocket endpoint using the
WebSocketClient.html
file.
This project is a Java web application that provides backend services for a bidding system. It uses servlets and WebSockets to manage auctions and bids. This project is intended to be used with a separate frontend application.
- Make sure you have Java and Maven installed.
- Navigate to the
Bidding
directory. - Build the project using Maven:
mvn clean install
- Deploy the generated WAR file (located in the
target
directory) to a servlet container such as Tomcat. - The backend services will be available at
http://localhost:8081/Bidding/
.
This project is a Java web application that provides a payment processing service. It uses a servlet to handle payment requests and stores payment information in a SQLite database. This project is intended to be used with a separate frontend application.
- Make sure you have Java and Maven installed.
- Navigate to the
Payment
directory. - Build the project using Maven:
mvn clean install
- Deploy the generated WAR file (located in the
target
directory) to a servlet container such as Tomcat. - The payment service will be available at
http://localhost:8082/Payment/PaymentServlet
.
This project is a Next.js application that serves as the frontend for a bidding system called MeowMart, a platform for buying and selling items, specifically cats. It interacts with the backend services provided by the Bidding and Payment projects. It uses WebSockets for real-time updates and provides a user interface for browsing items, placing bids, and processing payments.
To run the Next.js frontend:
- Make sure you have Node.js and npm installed.
- Navigate to the
web
directory. - Install the dependencies:
npm install
- Run the development server:
npm run dev
- Open http://localhost:3000 with your browser to see the result.
To run the project using Docker, you will need to have Docker and Docker Compose installed on your system.
Before running the project, you may need to pull the required Docker images. The Authentication
service uses the tomcat:9.0.98-jdk8
image. You can pull this image using the following command:
docker pull tomcat:9.0.98-jdk8
- Navigate to the root directory of the project (where the
docker-compose.yml
file is located). - Run the following command to build and start the containers:
docker-compose up --build
- Once the containers are up and running, you can access the web frontend at
http://localhost:3000
.