Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

fleet-optimizer

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fleet-optimizer

Fleet Management Software (FMS)

latest
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

fleet-optimizer

Fleet Management Software (FMS)

index

source code:

  • library: https://github.com/trabur/fleet-optimizer
  • server: https://github.com/trabur/pro.istrav.dev
  • clients:

apps:

library tech:

  • TypeScript
  • rxdb.info
  • couchdb.apache.org
  • project-osrm.org

install

# https://www.npmjs.com/package/fleet-optimizer
npm i fleet-optimizer

about

The most optimal solution is the outcome where time is saved and where each member of the group makes more money than if they were to work individually.

  • a fleet could be a company or team
  • the goal is to process orders and make deliveries as a fleet
  • fleets may have many professionals, vehicles, customers, orders
  • trades are what give professionals abilities
  • professionals with a trade in trucking may move materials from source to factory
  • professionals with a trade in trucking may move products from factory to warehouse
  • professionals with a trade in trucking may move products from warehouse to store
  • professionals with a trade in dashing may move products from store to customer
  • customers may have many contacts and many locations
  • factories generate products
  • warehouses hold products temporarily
  • stores sell products to customers
  • factories, warehouses, and stores may be shared or limited between fleets

tests:

fleet1 Expert Services
vehicle1 SDF123
location1 Austin, TX

examples:

# npm run examples:storedash
# npm run examples:mrclean
# npm run examples:hvacpro
# npm run examples:trucking

istrav-couchdb

We use CouchDB for data persistance.

# on ubuntu 22
sudo snap install couchdb

# https://github.com/apache/couchdb-pkg/blob/main/README-SNAP.md

$ sudo ufw enable
$ sudo ufw allow 5984/tcp
$ sudo ufw reload

istrav-osrm

We use OSRM for our distance matrix api calculator:

Setup:

# install dependencies
sudo apt install build-essential git cmake pkg-config \
libbz2-dev libxml2-dev libzip-dev libboost-all-dev \
lua5.2 liblua5.2-dev libtbb-dev

# clone repository
cd ~/Projects
git clone https://github.com/Project-OSRM/osrm-backend.git
cd ./osrm-backend

# compile and install OSRM binaries
mkdir -p build
cd build
cmake ..
cmake --build .
sudo cmake --build . --target install

# return
cd ~/Projects/osrm-backend

# extract open street maps after downloading files from:
# http://download.geofabrik.de/

# because files are big they need swap enabled on them
fallocate -l 100G ~/osm/swapfile
chmod 600 ~/osm/swapfile
mkswap ~/osm/swapfile
swapon ~/osm/swapfile

# load
osrm-extract ~/osm/north-america-latest.osm.pbf -p profiles/car.lua
osrm-contract ~/osm/north-america-latest.osrm

# run
osrm-routed ~/osm/north-america-latest.osrm

versioning

# tag a vew version
$ npm version v1.0.1 --no-git-tag-version

# check everything in
$ git add . && git commit -m "version" && git push

# then check version tag in
$ git tag v1.0.1
$ git push --tags

FAQs

Package last updated on 11 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts