Giter Club home page Giter Club logo

csc3004-grpcassignment's Introduction

CSC3004-GrpcAssignment

gRPC Python

Navigate to the gRPC directory

cd ./grpc

Installing Dependencies

The requirement dependencies can be found in ./grpc/requirement.txt

Install dependencies using the following command

pip install -r requirements.txt

Program

The gRPC server can be found in ./grpc/server.py

Run the Server

python server.py

The gRPC client can be found in ./grpc/client.py

Run the Client

python client.py

User are required to login to use the features The following login credentials are provided

The user and officer are pre-set in the system

Normal User
name: user1 (The following name works as well: user1,user2,user3,... user10)
nric: 98765432
Officer
name: officer
nric: 98765432

Program Workflow

Link

Program Flow

After Login, user will be prompted serveral options

image

Users will be able to naviagte the UI by selecting the available options

If an invalid input is selected, users are required to re-run the client program

image

Database (PostgreSQL)

ER Diagram

Link

Installation

Accessing the database would require 'psql' to be installed

The installation guide can be found in postgresql_guide.pdf

Connection

psql -d testing -U postgres -h 174.138.23.75 -p 5432

Password: cl0udplus!

Script

Navigate to the Database Directory

cd Database

Drop Schema

psql -d testing -U postgres -h 174.138.23.75 -p 5432 -f './drop.sql'

Create Schema

psql -d testing -U postgres -h 174.138.23.75 -p 5432 -f './main.sql'

Bootstrap with Sample Data

psql -d testing -U postgres -h 174.138.23.75 -p 5432 -f './init.sql'

csc3004-grpcassignment's People

Contributors

tsuisauchi avatar m-taufik avatar

Watchers

James Cloos avatar  avatar

Forkers

m-taufik

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.