/caps

This repository is for code 401 Lab: 11 (11-4-2021)

Primary LanguageJavaScriptMIT LicenseMIT

LAB: Event Driven Applications

CAPS Phase 1: Begin the build of an application for a company called CAPS - The Code Academy Parcel Service. In this sprint, we’ll build out a system that emulates a real world supply chain. CAPS will simulate a delivery service where vendors (such a flower shops) will ship products using our delivery service and when our drivers deliver them, be notified that their customers received what they purchased.

Tactically, this will be an event driven application that “distributes” the responsibility for logging to separate modules, using only events to trigger logging based on activity.

Author: Afnan Damra Version: 1.0.0

Links:

Setup

Install

  • Clone the repository from GitHub
  • Run the command npm i dotenv faker jest to install dependencies
  • create .env file with STORE variable with the store name

Test

  • Run the command npm test to test and verify the events are being called.
  • Run the command npm run lint for testing lint.

Run

  • Run the command nodemon or npm start to see the events in action (example below).

example output

Documentation

UML Diagram

Below is a UML of my application (created at https://app.diagrams.net)

UML Lab11

Resources and Collaboration

  • CAPS system overview from Codefellows
  • I did the lab with Baha Zghayar and Zaid Al-Asfar