Skip to content

LiveBacteria/work-api-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cleanharbors DVIR to PDF API server

Utilizing node and express, this project serves as a backend handler to the frontend counterpart. In general, this project allows to accelerate the Transportation Compliance Coordinator workflow at clean harbors.

You can follow this project and the Frontend development at Trello.

Usage

This server is designed to be used in conjunction with Cleanharbors intrasite and the frontend project, Cleanharbors Frontend. Utilizing injected code on the intrasite, post iframe DVIR data back to this server to be stored and or downloaded in compiled and relevantly named file sets.

Setup

This project needs valid environment variables to run, due to implenting the dotenv npm package. Create a .env file and have its contents include:

apiUser: UserGoesHere
apiAccessKey: demoAuth

The default login for this server when prompted for by the frontend will be:

user: Livebacteria
password: demoAuth

Using npm start will start the server.

Please note that this server needs to be running before attempting to connect with the frontend.

Issues

  • Handling and storing data when deployed to Heroku --
  • Sending iframe content as POST data to server --
  • Recieving and converting iframe content to be storable and readable on serverside √
  • Delay in cloud functionality leading to corrupted zip downloads --

Solutions

  • Utilise Heroku ephemeral storage for html to pdf / image --
  • Created and connected Google Firestore Cloud Storage --
  • Ability to run locally alongside electron frontend deployment √
  • Integrate with Frontend

Features

  • Compile and mass-download DVIR
  • Weekly Duties solutions: DVIR Tracking, Assigned Vehicle DVIR Tracking

Future Features

  • Merge with Frontend
  • Compile and mass-download APR reports
  • Compile and mass-download DLOG (Utlizing XSS via Chromium Extension on Telogis Domain)
  • Utilize either OCR for ELD pdf data conversion, or convert ELD pdf to readable standard csv / JSON / text String
  • Weekly Duties solutions: ELD<->APR Recon

License

  • Copyright Tyler Poore

About

Backend server with various workflow functionalities,

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published