GithubHelp home page GithubHelp logo

isabella232 / codebrag Goto Github PK

View Code? Open in Web Editor NEW

This project forked from softwaremill/codebrag

0.0 0.0 0.0 15.56 MB

Your daily code review tool

Home Page: http://www.codebrag.com

License: GNU Affero General Public License v3.0

Scala 52.44% CSS 8.16% HTML 5.84% JavaScript 32.73% Shell 0.74% Ruby 0.07% Batchfile 0.01% PLSQL 0.01%

codebrag's Introduction

Codebrag

THIS PROJECT IS NOT MAINTAINED! FEEL FREE TO FORK :)

Build Status

Below is a developer guide if you want to hack on Codebrag yourself.

If you are looking for general information on the project, please see the main website.

If you are just looking for installation or upgrade instructions, please refer to the wiki.

Changelog WebHooks

Developer guide

Prerequisites:

  1. sbt 0.13.6
  2. nodejs 0.10.13 or newer (make sure node and npm are available on PATH)

Quick Start

  1. Configure local.conf in the codebrag home directory basing on codebrag-rest/src/main/resources/application.conf.template
  2. Checkout a SVN/Git repository to chosen repos-root folder - Codebrag won't do that for you!
  3. Navigate to the codebrag home directory
  4. Execute ./run.sh script
  5. Default browser should open at localhost:9090

Working with the application:

  1. Go to project dir
  2. Configure local.conf in the codebrag home directory basing on codebrag-rest/src/main/resources/application.conf.template
  3. Start sbt with sbt
  4. Open project in your favorite IDE
  5. Run backend server on jetty with ~ container:start. Project will be recompiled & redeployed every time Scala sources will be changed.
  6. Go to codebrag-ui project. If this is your first attempt, run npm install. This will install all the dependencies required to start UI Codebrag application. Then run ./node_modules/.bin/grunt server. If you have grunt installed globally you can use grunt server instead.

Default browser should open at http://localhost:9090

For more information about UI application build please consult README in codebrag-ui project

Run Codebrag with stubbed backend

You may want to run Codebrag without backend services e.g. to work on frontend side (HTML, CSS). Follow the instructions in codebrag-ui project README to install all required stuff. When Codebrag is run, appending ?nobackend to any URL lets you work with stubbed data - with no backend required.

Skipping slow tests

If you want to execute tests from sbt and skip slow cases requiring database, you can execute following command: test-only * -- -l requiresDb

Logging

For logging we use SLF4J+Logback. An example configration file can be found in scripts/logback-example.xml. To use a configuration file, either place a logback.xml file in the bundle, or specify an external one using -Dlogback.configurationFile.

Create distribution

  1. Start sbt, change subproject: project codebrag-dist
  2. Run: assembly
  3. This will create a fat-jar. To start Codebrag with the given configuration, run:
java -Dconfig.file=[path to .conf file] -Dlogback.configurationFile=logback.xml -jar codebrag-dist-assembly-[version].jar

H2 console

When using the embedded SQL storage, it may be useful to browse the tables. H2 provides consoles, which can be run as follows:

  1. For a web console, run from sbt: codebrag-dao/runH2Console
  2. For a command line console, run java -Dconfig.file=codebrag.conf -cp [path to the fat JAR] com.softwaremill.codebrag.dao.sql.H2ShellConsole

codebrag's People

Contributors

adamw avatar amorfis avatar apuchta avatar gerits avatar kciesielski avatar loziniak avatar lukaszlenart avatar maciej avatar marynaaleksandrova avatar mchmielarz avatar mikolak-net avatar mmatloka avatar mostr avatar pawelwrzeszcz avatar pbuda avatar rohanhart avatar rucek avatar szimano avatar tdziurko avatar twasyl avatar unodgs avatar zuchos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.