4 Star 1 Fork 0

Gitee 极速下载/codebrag

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/softwaremill/codebrag
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
AGPL-3.0

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

空文件

简介

暂无描述 展开 收起
AGPL-3.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/codebrag.git
git@gitee.com:mirrors/codebrag.git
mirrors
codebrag
codebrag
master

搜索帮助