Skip to content

ShiboXing/Pitt-Social

Repository files navigation

Pitt-Social

This project is a social networking system for University of Pittsburgh built with PostgresSQL and operated by an application written in Java with JDBC
Contributors: Fangzheng Guo, Zhuolun Li and Shibo Xing

Phase 1

Instantiated schemas and all relations with integrity contraints
Defined triggers on tables for further SQL development
Generated sample data for initial testing of the schema

Phase 2

Implemented SQL procedures and functions to support the JDBC methods
Improved SQL relation schemas for better performance and modularity
Implemented Java methods and classes to accomplish user's operations

Phase 3

Fully implemented end-user interface, combined with JDBC methods with through controller's logic
Added concurrency control to prevent dirty reads and writes of the table through postgresql transaction
Performed testing on JDBC and SQL functions and black-box testing from end-user's perspective.

How to run

prerequisites:
have Java 8 installed on your local machine, a postgresql database installed on localhost

Unix/Linux users:

First change the credentials in

src/DataManager.java

in accordance with your postgresql database

In the root directory of the repository, you can run:

$ sh ./compile.sh to compile.

$ sh ./runApplication.sh I to initialize database

$ sh ./runApplication.sh to run without initialization

to start the program.

Windows users:

Run

> compile.bat to compile.

> runApplication.bat I to initialize database

> runApplication.bat to run without initialization

to start the program.

For any question or concern, please contact [email protected], [email protected] or [email protected].

Releases

No releases published

Packages

No packages published