Skip to content

Latest commit

 

History

History
81 lines (56 loc) · 3.18 KB

README.md

File metadata and controls

81 lines (56 loc) · 3.18 KB

Kitambulisho Trace & Reissue System

About

This is a system that facilitates the recovery of lost/misplaced National Identity cards and Passports. The system involves 3 entities

  1. client who has lost their ID
  2. The Noble Citizen who finds the ID Card
  3. A Station that receives->records->posts the ID Details and Reissues it to claiming Owners

Getting Started

ENV: python3 Technologies: Flask, SQLAlchemy(ORM), Rest_API

Setting up the Environment

  • Install python requirements
pip install -r requirements.txt
  • modify the file "web_dynamic_api.sh" and update the mysql Server Username, Password & Database Name
  • Setting the "HBNB_ENV=dev" will only create the table structures once
  • setting the "HBNB_ENV=test" will Truncate all tables and recreate them each time Flask restarts or reloads after a code change/update.

Running the Program and Bootstrapping the Database and running the API

sudo mysql -u root

CREATE DATABASE kitambulisho_db;

quit;

sudo mysql -u root kitambulisho_db < kitambulisho_db.sql
bash -x web_dynamic_api.sh

INFO

NOTE: When you are making database schema modification set web_dynamic_api.sh HBNB_ENV=test - since any code modification will cause the database to be truncated and DDL to be rerun to incorporate new updates Else just set it's value to HBNB_ENV=dev to test out DQL and DRL.

API Enpoint Documentation.

sudo apt install asciinema -y
# play Recording using the following: -s is for speed you can set to a lower value e.g 1 if you prefer.
ls {1..6}*.rec # Lists all asciinema recordings
asciinema play -s 5 1_report_lost_id.rec # Plays the first asciinema recording

Api Endpoints are documented in the api.txt file provided.

Project Resources

project proposal

Kitambulisho Trace & Reissue System Pitch Deck & Lean Canvas Model

Proposed web architecture & MVP

ID Tracker flowChart (2)

Minimal Viable Product Specification Document

Project Management

Trello board Detailing the Work BreakDown Structure & Timelines

Demo Videos

Getting Started

Reporting a Lost n Found Document

Remit of Lost Document to Kitambulisho Collection Station

System Handle of Duplicate Remit of Documents at Different Stations

Search For Lost ID and Tracing to Where it is Currently Being Kept"claimant"

Final Presentation slides

project Summary Slides