Coder Social home page Coder Social logo

lomax's Introduction

Lomax

Lomax is the Workbench Archiving Service. It will handle bulk movement of GCS data into and out of archives, with an overall goal of saving users' money by taking advantage of cheaper storage classes for archives.

This service is named after the legendary music archiver Alan Lomax.

CircleCI codecov

For Developers

Setup for Node and npm

This codebase requires npm and Node.js. Specifically, it wants Node.js version 8.15.0, or whatever minor/patch version Google documents at https://cloud.google.com/functions/docs/concepts/nodejs-8-runtime. npm is included in the Node.js install so typically you do not have to install it separately.

If you already have a different version of Node on your system, think you might need different versions in the future, or you have a hard time finding the right version of Node to install, you might be interested in nvm. nvm is not required to work with Lomax, but it is highly recommended and very useful to install and manage multiple versions of Node.

To install third-party libraries, first cd function, then npm install. You will need to npm install any time package.json or package-lock.json changes. Conversely, if those files have not changed since your last install, you should not have to run npm install. You must npm install before linting or testing.

This is a minimal set of commands that may work for you:

brew install nvm
nvm install 8.15.0
cd function
npm install
npm test

git-secrets

Linting

  1. cd function - make sure you're in the right directory. The root of this repostory is NOT the right directory!
  2. npm run lint - note you need the extra run command.

If you have linter errors, you can access the linter directly with npx eslint. For instance, to ask eslint to fix the errors it found, run npx eslint . --fix.

Testing

  1. cd function - make sure you're in the right directory. The root of this repostory is NOT the right directory!
  2. npm test

npm test will automatically lint the code before running tests, and will fail on linter exceptions. This happens via the pretest hook in package.json.

lomax's People

Contributors

davidangb avatar

Watchers

Karthik Manimaran avatar Tom Lyons avatar Brett Heath-Wlaz avatar Drew Hite avatar  avatar James Cloos avatar Jeff Gentry avatar Barbara Hill avatar  avatar Andrew Zimmer avatar Bec Asch avatar Blake Geno avatar Joel Thibault avatar Geraldine Van der Auwera avatar Eric Banks avatar Polina Shpilker avatar  avatar  avatar Jared Nedzel avatar Jesus Aguilar avatar  avatar Janet Gainer-Dewar avatar Charlotte Tolonen avatar  avatar Grigoriy Sterin avatar Andrew avatar  avatar Timothy Tickle avatar  avatar Nick Malfroy-Camine avatar  avatar  avatar Mike Neville avatar Yonghao Yu avatar Rhian Anthony avatar  avatar Henry Ferrara avatar  avatar Adrian Sharma avatar Robert Meffan avatar Matt Bemis avatar  avatar  avatar Tom Conner avatar Charley Yan avatar Kevin Lydon avatar michellec avatar Jackie Roberti avatar  avatar  avatar Roger Wang avatar Miguel Covarrubias avatar  avatar Sarada S avatar  avatar Nate L avatar  avatar Ruchi avatar  avatar Austin Pardo avatar Marc Talbott avatar  avatar Evan Suslovich avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.