oss-contribution-tracker
oss-contribution-tracker copied to clipboard
Track contributions made to external projects and manage CLAs
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
- Install Docker for your platform of choice
- Clone this repository to your machine
- Edit
config/default.jsand fill out the ldap, admin, approver, and display sections - Run
docker-compose up - Navigate to http://0.0.0.0:8000/ via your preferred browser
- 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:
- Running
npm install(if you haven't already) - Run
docker-compose -f docker-compose.dev.yml upto start up a PostgreSQL container - In a new shell, run
npm run devto launch a development/auto-reloading instance. - 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:
- Run
docker-compose -f docker-compose.selenium.yml upfrom the root directory - Run
npm run test-uifrom 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
- EditorConfig for VS Code
- TSLint