THIS PROJECT IS NOT MAINTAINED! FEEL FREE TO FORK
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.
Prerequisites:
node
and npm
are available on PATH
)local.conf
in the codebrag
home directory basing on codebrag-rest/src/main/resources/application.conf.template
repos-root
folder - Codebrag won't do that for you!codebrag
home directory./run.sh
scriptlocalhost:9090
local.conf
in the codebrag
home directory basing on codebrag-rest/src/main/resources/application.conf.template
sbt
~ container:start
. Project will be recompiled & redeployed every time Scala sources will be changed.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
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.
If you want to execute tests from sbt and skip slow cases requiring database, you can execute following command:
test-only * -- -l requiresDb
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
.
project codebrag-dist
assembly
java -Dconfig.file=[path to .conf file] -Dlogback.configurationFile=logback.xml -jar codebrag-dist-assembly-[version].jar
When using the embedded SQL storage, it may be useful to browse the tables. H2 provides consoles, which can be run as follows:
codebrag-dao/runH2Console
java -Dconfig.file=codebrag.conf -cp [path to the fat JAR] com.softwaremill.codebrag.dao.sql.H2ShellConsole
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。