vokal / cvr-view

Web front for cvr
MIT License
0 stars 3 forks source link

CVR View

The easy open source way to privately host your code coverage.

line cvr

CVR View is an Express application for hosting your code coverage results. If you'd like to host your coverage internally, or without paying for monthly services, CVR View might be for you.

To get started, using the seed project is recommended to make your future updating as simple as a new npm install.

MIT Licensed

Configuration

Configuration requires some setup and copying of related details into environment variables on the machine hosting Node.js:

Required Environment Variables

The required configuration information is for GitHub OAuth and the MongoDB connection string. This info can be specified in either a .env file in the project root, or via environment variables. A .env-sample file is included that you can fill out and rename as .env.

If required variables are missing a crash will occur.

Optional Environment Variables

Create a GitHub Application

A GitHub application must be created through GitHub.com to give access to repos in your organization. It is not recommended to make the application on this page https://github.com/settings/applications/new but if you select the relevant organization from the bottom left of the page and then select Applications on the left, you can make the application under the organization's account.

Host a MongoDB Instance

If you are not familiar with hosting MongoDB, using a service like MongoLab is recommended. Once you create an instance and user, grab the connection string, which is a URL, and assign it to the DB_CONN environment variable. This URL starts with mongodb://.

Host CVR on Node.js

Running the service with something like Forever that provides automatic restarts is recommended. For example:

Expose a Domain Name to the Hosted Instance

The application will need to be hosted under a domain that matches the one you entered when creating the GitHub application. This needs to be configured at the DNS level, generally as a CNAME.