Skip to content

francheska-vicente/stadvdb-mco2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCO2: Transaction Management

This project is a website that simulates transaction management in distributed database systems that support concurrent multi-user access, which is used as a major course output for a database systems class.

Project Files

Models

Execution of functions were done asynchronously with promises.

Model Files Description
db.js Handles query concurrency (supposedly) and failover
nodes.js Connects to nodes, executes queries for specific nodes
transaction.js Starts transactions
logs.js Connects to log table, retrieves and updates log table rows
sync.js Iterates through unreplicated rows and updates nodes
replicator.js Handles when data replication occurs

Setting up

How to set up and run the project locally through a NodeJS Server:

  1. Extract the folder from the zipped file that you can download through this DownGit link.
  2. Naviate to the project folder (using the cd command) (i.e. the main folder containing the file app.js)
  3. Run the command in order to install all the modules needed in order to run the project successfully:
npm install 
  1. We may now run the server by typing node app.js
  2. Since the web application is running on localhost:3000, type http://localhost:3000 on your browser of choice.
  3. Now, you would be able to see and use the application!

Online

The deployed web application can be access through link.

Authors