Skip to content

The final project of Advanced Programming course, implementing "Divar"(an online platform to sell/buy any stuff you wish) with pure java serverside and cli client.

Notifications You must be signed in to change notification settings

Amirhosseinbayat/DivarJava

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Divar Java

A social marketplace where users can buy and sell new and secondhand stuff. This platform facilitates consumer-to-consumer and business-to-consumer sales with focusing on advertising. Which have sections to devoted real estate, vehicles, goods, community service, Industrial equipment, items wanted, jobs. by posting any placard you wish as many as you want.

This is the final project of the Advanced Programming course of the fall semester of 2022 at SBU presented by Dr.Vahidi, and created by Amirhossein Bayat and Hojat Ghasemi.

Query image

Pure Java serverside + Cli client.

  • Uses pure java with no dependencies and libraries included.
  • Client and server can function with just 5MBs of heap memory.
  • A not boring Cli client with colors and beautiful UI

Install and run server process.

Server image Navigate to ServerSide folder, compile the project using:

javac -d bin -sourcepath src/main/java src/main/java/org/finalproject/server/ServerMain.java

Navigate to the newly created bin folder and Run the Server process with

 java org.finalproject.server.ServerMain

Install and run client process

Client image Open a new terminal, navigate to the ClientSide folder. compile the java code with:

javac -d bin -sourcepath src/main/java src/main/java/org/finalproject/client/ClientMain.java

Navigate to the newly created bin folder and Run the client using

 java org.finalproject.client.ClientMain

To limit memory usage, use -Xmx option followed by the amount of ram, for example 10m for 10MB:

 java -Xmx10m org.finalproject.client.ClientMain

To debug memory usage use -memory option, this will print memory usage every 5 sec.

 java org.finalproject.client.ClientMain -memory

Create a placard:

to create a placard, after login/signup select option "Create placard" and fill in the fields like below: Placard creation image

Enjoy!

About

The final project of Advanced Programming course, implementing "Divar"(an online platform to sell/buy any stuff you wish) with pure java serverside and cli client.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages