Giter Site home page Giter Site logo

acg-ca2's Introduction

ACG CA2

Prerequisites

  1. Install Python 3.9 or later
  2. Install required package(s) using the command pip install -r requirements.txt

To Run

Client

  1. Open another new terminal window and change directory into src/client
  2. Run the command python -m src/client/index.py to start the client. Note - the private key's passphrase is "pass"

Server

  1. Open a new terminal window and change directory into the src/server
  2. Run the command python -m src/server/index.py to start the server.

User Configuration

Client

  1. Edit src/client/config.ini and change the username

Server

  • Use the web interface to add/edit/del users
  • Manually edit the src/admin/data/users.csv file

Keypairs

The keypair will be generated on the client via its GUI interface. The public key must be located on the server prior to connection, else the server will not be able to authenticate the client. There are several ways to transfer the keys

  • Using a secure protocol, such as via SSH
  • Physically, such as via USB

Folder Structure

Client

auth/ - handles api calls to authd
controllers/ - contains flow control logic
keys/ - contains public key pair
util/ - conatins helper functions
views/ - contains display data for GUI
config.ini - application settings
index.py - main application entry-point
logs.txt - camera logs

Server

auth/ - handles api requests to authd
build/ - contain webinterface files
data/ - contains ftp files and userlist file, users.csv
models/ - allows access and manipulation to .csv files
util/ - contains helper functions
authd.py - authorisation server logic
ftpd.py - ftp server logic
httpd.py - web interface server logic
index.py - main application entry-point

acg-ca2's People

Contributors

ecwk avatar

Watchers

 avatar

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.