Skip to content

Repo for LADOT MDS implementation for contribution to the Open Mobility Foundation

License

Notifications You must be signed in to change notification settings

twelch/mds-core

 
 

Repository files navigation

Overview

Repo for LADOT MDS implementation for contribution to the Open Mobility Foundation. It represents what is currently up and running for Los Angeles production MDS as well as new features under development. Includes the following:

  • A current LADOT implementation of all MDS endpoints
  • AWS production bindings (aws-lambda)
  • Development versions of mds-audit, mds-policy, and mds-compliance
  • MDS logging (mds-logger), daily metrics (mds-daily) and Google sheet reporting app for technical compliance.

Installation

Dependencies

  • PostgreSQL
  • Redis
  • Yarn

Install Lerna

yarn global add lerna

Install all packages. Uses Yarn workspaces.

yarn install

Now you can work with each package

cd packages/mds-audit
yarn test
yarn start

Package Management - Lerna

This repository is a monorepo and uses Lerna for working with its packages.

Example commands

Run all test suites at once

lerna run test

Run all tests suites sequentially

lerna run test --concurrency 1

Run tests for a particular package

lerna run test --scope mds-audit

Clean all dependencies

lerna run clean

Format all files

lerna run prettier

Debugging with Visual Studio Code

Node.js: Express Server

  • Select the Node.js Express Server debug configuration
  • Select the file that implements the Node/Express server for a package (typically server.ts) in the Explorer panel
  • Press F5

Mocha Tests

  • Select the Node.js: Mocha Tests debug configuration
  • Select any one of the files in a package's test folder
  • Press F5

Contributing

See CONTRIBUTING.md

About

Repo for LADOT MDS implementation for contribution to the Open Mobility Foundation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 61.5%
  • TypeScript 38.5%