amzn/oss-contribution-tracker

Name: oss-contribution-tracker

Owner: Amazon

Description: Track contributions made to external projects and manage CLAs

Created: 2017-08-28 17:45:55.0

Updated: 2018-05-22 22:39:35.0

Pushed: 2018-05-22 22:39:33.0

Homepage:

Size: 553

Language: TypeScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

OSS-Contribution-Tracker

OSS-Contribution-Tracker is a tool that tracks external contributions to third-party open source software and CLAs that are sometimes associated.

Quickstart setup
  1. Install Docker for your platform of choice
  2. Clone this repository to your machine
  3. Edit config/default.js and fill out the ldap, admin, approver, and display sections
  4. Run docker-compose up
  5. Navigate to http://0.0.0.0:8000/ via your preferred browser
  6. Log all the contributions
Development server

If you are interested in setting up a development server for testing, or just want to mess with the code base, you can launch a dev environment by:

  1. Running npm install (if you haven't already)
  2. Run docker-compose -f docker-compose.dev.yml up to start up a PostgreSQL container
  3. In a new shell, run npm run dev to launch a development/auto-reloading instance.
  4. Navigate to http://0.0.0.0:8010/
Using Alternate Configurations

You can provide a custom configuration by placing your config in the server/config directory and by running

npm run dev --alt_config=<config name>

Testing

To run unit tests, run npm test from the root folder.

To run UI tests:

  1. Run docker-compose -f docker-compose.selenium.yml up from the root directory
  2. Run npm run test-ui from the root directory

Note: You can connect to the selenium instance through VNC to actually view the UI tests. This is useful when trying to troubleshoot or write new features.

Environment Variables

Set DEBUG_SQL=1 to show full SQL commands on the console.

Set DEBUG_USER=$USER to simulate a user during development. The default user is 'nobody'.

Contributing

Read CONTRIBUTING for details.

Editor Plugins

These plugins can assist in development and maintaining code style in this project:

VS Code

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.