|
| 1 | +## GitCandy |
| 2 | +GitCandy© 是一个基于 ASP.NET MVC 的 [Git](http://git-scm.com/documentation) 版本控制服务端,支持公有和私有代码库,可不受限制的创建代码代码库,随时随地的与团队进行协作。 |
| 3 | + |
| 4 | +演示网站:[http://gitcandy.com](http://gitcandy.com) |
| 5 | + |
| 6 | +源代码: [https://github.com/Aimeast/GitCandy](https://github.com/Aimeast/GitCandy) |
| 7 | + |
| 8 | +--- |
| 9 | +### 系统要求 |
| 10 | +* [IIS 7.0](http://www.iis.net/learn) |
| 11 | +* [.NET Framework 4.5](http://www.microsoft.com/en-us/download/details.aspx?id=30653) |
| 12 | +* [ASP.NET MVC 5](http://www.asp.net/mvc/tutorials/mvc-5) |
| 13 | +* [Git](http://git-for-windows.github.io/) |
| 14 | +* [Sqlite](http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki) 或 [Sql Server](http://www.microsoft.com/en-us/sqlserver/get-sql-server/try-it.aspx) |
| 15 | + |
| 16 | +--- |
| 17 | +### 安装 |
| 18 | +* 下载最新[发布](https://github.com/Aimeast/GitCandy/releases)的版本或自己编译最新的[dev](https://github.com/Aimeast/GitCandy/dev)分支源码 |
| 19 | +* 在IIS创建一个站点,并把二进制文件和资源文件复制到站点目录 |
| 20 | +* 如果用了 Visual Studio 的发布功能,还要复制`GitCandy\bin\[NativeBinaries & x86 & x64]`文件夹到站点目录 |
| 21 | +* 用`/Sql/Create.[Sqlite | MsSql].sql`脚本创建一个数据库。如果创建的是Sqlite数据库,还需把数据库文件复制到`App_Data`文件夹 |
| 22 | +* 更新`Web.config`文件的数据库连接串 |
| 23 | +* 准备两个文件夹分别用来存储`代码库`和`缓存` |
| 24 | +* 打开新建的站点,默认登录用户名是`admin`,密码是`gitcandy` |
| 25 | +* 转到`设置`页面,分别设置`代码库`,`缓存`和`git-core`的路径 |
| 26 | +* 推荐在`Web.config`设置`<compilation debug="false" />` |
| 27 | + |
| 28 | +##### *注* |
| 29 | +* `代码库`和`缓存`路径示例:`x:\Repos`,`x:\Cache` |
| 30 | +* `git-core`路径示例:`x:\PortableGit\libexec\git-core`,`x:\PortableGit\mingw64\libexec\git-core` |
| 31 | + |
| 32 | +--- |
| 33 | +### 鸣谢 (按字母序) |
| 34 | +* [ASP.NET MVC](http://aspnetwebstack.codeplex.com/) @ [Apache License 2.0](http://aspnetwebstack.codeplex.com/license) |
| 35 | +* [Bootstrap](https://github.com/twbs/bootstrap) @ [MIT License](https://github.com/twbs/bootstrap/blob/master/LICENSE) |
| 36 | +* [Bootstrap-switch](https://github.com/nostalgiaz/bootstrap-switch) @ [Apache License 2.0](https://github.com/nostalgiaz/bootstrap-switch/blob/master/LICENSE) |
| 37 | +* [EntityFramework](http://entityframework.codeplex.com/) @ [Apache License 2.0](http://entityframework.codeplex.com/license) |
| 38 | +* [Highlight.js](https://github.com/isagalaev/highlight.js) @ [New BSD License](https://github.com/isagalaev/highlight.js/blob/master/LICENSE) |
| 39 | +* [jQuery](https://github.com/jquery/jquery) @ [MIT License](https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt) |
| 40 | +* [LibGit2Sharp](https://github.com/libgit2/libgit2sharp) @ [MIT License](https://github.com/libgit2/libgit2sharp/blob/master/LICENSE.md) |
| 41 | +* [marked](https://github.com/chjj/marked) @ [MIT License](https://github.com/chjj/marked/blob/master/LICENSE) |
| 42 | +* [Microsoft.Composition (MEF2)](http://mef.codeplex.com/) @ [Microsoft Public License](http://mef.codeplex.com/license) |
| 43 | +* [Newtonsoft.Json](http://json.codeplex.com/) @ [MIT License](http://json.codeplex.com/license) |
| 44 | +* [SharpZipLib](https://github.com/icsharpcode/SharpZipLib) @ [GPL License v2](https://github.com/icsharpcode/SharpZipLib/blob/master/doc/COPYING.txt) |
| 45 | +* [ZeroClipboard](https://github.com/zeroclipboard/zeroclipboard) @ [MIT License](https://github.com/zeroclipboard/zeroclipboard/blob/master/LICENSE) |
| 46 | + |
| 47 | +--- |
| 48 | +### 协议 |
| 49 | +MIT 协议 |
0 commit comments