Skip to content

codlocker/CSE-531-Project

Repository files navigation

GENERAL SETUP FOR WINDOWS

  1. Install git (version 2.40.1.windows.1}) Windows
  2. Install python version 3.9.13 Windows. Ensure python is accessible via Powershell
  3. Install pip version 23.2.1py -m ensurepip --upgrade Source
  4. Create a new virtual environment for pip and install the following packages
    • grpcio==1.59.0
    • grpcio-tools==1.33.2
    • protobuf==3.14.0
  5. Activate the newly created environment
  6. Clone the repository CSE-531-Project
    • git clone https://github.com/codlocker/CSE-531-Project.git

PROJECT 1


RUN INSTRUCTIONS

  1. Run the command cd CSE-531-Project/Project 1 after cloning
  2. Run the following the command the build the proto files: python -m grpc_tools.protoc -I . .\BankService.proto --python_out=. --grpc_python_out=.
  3. The entry point of the code is through main.py
    • -i 'Input file path'
    • -o 'Output file path'
    • Example command : python main.py -o output.json -i input.json

RESULTS

Project1-result

PROJECT 2


RUN INSTRUCTIONS

  1. Run the command cd CSE-531-Project/Project 2 after cloning

  2. Run the following the command the build the proto files: python -m grpc_tools.protoc -I . .\BankService2.proto --python_out=. --grpc_python_out=.

  3. The entry point of the code is through main.py and add input.json or any name as the input file

    • Example command : python main.py input.json
  4. To run the checker scripts. Note there are 3 files customer_output.json, branch_output.json and output.json

    • python checker_part_1.py customer_output.json
    • python checker_part_2.py branch_output.json
    • python checker_part_3.py output.json

RESULTS

  • Running the checker_scipt for customers we get Customer

  • Running the checker_scipt for branch we get Branch

  • Running the checker_scipt for overall we get Overall

PROJECT 3


RUN INSTRUCTIONS

  1. Run the command cd CSE-531-Project/Project 3 after cloning

  2. Run the following the command the build the proto files: python -m grpc_tools.protoc -I . .\BankService3.proto --python_out=. --grpc_python_out=.

  3. The entry point of the code is through main.py and add input.json or any name as the input file

    • Example command : python main.py input.json
  4. To run the checker scripts. Note the file is output.json

    • python checker.py output.json

RESULTS

  • Running the checker_scipt for small input Customer

  • Running the checker_scipt for big input Branch

About

Decentralized Banking System

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages