Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete unused packges and file; Non-docker local dev #14

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

mindblight
Copy link

@mindblight mindblight commented Sep 10, 2022

Main changes

  • Deleted kubernetes and google cloud compute configuration files since they're no longer used. See @sidetrackedmind's slack comment
  • Removed lodash library. It wasn't being used
  • Removed fs library. fs is built into node. That library is a security placeholder put in place by NPM to prevent malicious actors from coopting the package for supply chain attacks.
  • Added support for running locally without docker. Unless I'm running a DB, I prefer to avoid using docker. It consumes a lot more power than running directly on metal, and it's more complex to use. But, I don't want to remove that option for people who prefer it :).

Testing

Try following the Directly via npm run start directions in the readme, and confirm files are written to tmp/

@@ -1,4 +1,4 @@
const axios = require('axios');
require("dotenv").config();
Copy link
Author

@mindblight mindblight Sep 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 This library loads the contents of .env file into process.env. It makes local development a lot easier.

@@ -1,6 +1,5 @@
var request = require('request');
var GtfsRealtimeBindings = require('gtfs-realtime-bindings');
const { reject } = require('lodash');
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 This was imported but unused.

@@ -1,4 +1,4 @@
const axios = require('axios');
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 Imported but unused

"gtfs-realtime-bindings": "^0.0.5",
"luxon": "^2.3.0",
"request": "^2.88.0",
"zlib": "^1.0.5"
},
"devDependencies": {
"jest": "^27.5.1",
"lodash": "^4.17.11"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 If we want to add lodash back, it likely needs to go under dependencies rather than devDependencies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant