OSS-Contribution-Tracker is a tool that tracks external contributions to third-party open source software and CLAs that are sometimes associated.
- Install Docker for your platform of choice
- Clone this repository to your machine
- Edit
config/default.js
and 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
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 up
to start up a PostgreSQL container - In a new shell, run
npm run dev
to launch a development/auto-reloading instance. - Navigate to http://0.0.0.0:8010/
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>
To run unit tests, run npm test
from the root folder.
To run UI tests:
- Run
docker-compose -f docker-compose.selenium.yml up
from the root directory - 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.
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'.
Read CONTRIBUTING for details.
These plugins can assist in development and maintaining code style in this project:
- EditorConfig for VS Code
- TSLint