A tool that allows you to paste a unified diff and get a nicely rendered view of it with code highlighting, and a URL for you to share
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
conf
project
public
test
.gitignore
LICENSE
README.md
activator.properties
build.sbt
opendiff.iml

README.md

Open Diff

See the opendiff website for information on what the project is.

Running

To run locally you will need scala and postgres. This program uses the standard lightbend tools and SBT so configure it as such a project in your preferred IDE.

The following environment variables will need configured with valid parameters to connect to the database. The database and user will need to already exist with full grants:

  • JDBC_DATABASE_URL=jdbc:postgresql://localhost/opendiff
  • JDBC_DATABASE_USERNAME=postgres
  • JDBC_DATABASE_PASSWORD=

Or you can run the application using java, scala or the generated binary setting the following parameters with -D:

  • -Dslick.dbs.default.db.url=jdbc:postgresql://localhost/opendiff
  • -Dslick.dbs.default.db.user=opendiff
  • -Dslick.dbs.default.db.password=opendiff

If you're going to be running it in production mode then you'll need to configure an application secret:

  • APPLICATION_SECRET=supersecret

Or:

  • -Dplay.crypto.secret=supersecret

Contributing

Feel free to contribute in any way you like. Feel free to contact me if you have an idea, open an issue, open a random PR, whatever you want really. I'm a one man band on this so there's no strict process.