event store
Event Store
The documentation has now moved to the wiki in this repository. For a quick start, look here.
Development is on the "dev" branch (and feature branches). Please make any pull requests to the "dev" branch.
This is the repository for the open source version of Event Store, which now includes the clustering implementation for high availability. Further information on commercial support and options such as LDAP authentication can be found on the Event Store website at http://geteventstore.com.
Building from Source
Event Store is written in a mixture of C#, C++ and JavaScript. It can run either on Mono or .NET, however because it contains platform specific code (including hosting the v8 JavaScript engine), it must be built for the platform on which you intend to run it.
Binaries are available from http://geteventstore.com, however if you want to build it from source, instructions for Windows and Linux are below.
Debug Builds on Windows / .NET
Prerequisites
- .NET Framework v4.0+
- Windows platform SDK with compilers (v7.1) or Visual C++ installed
- git on PATH
- svn on PATH
Building the Event Store
Important note: if you have previously built from source, it's possible you have V8 checked out via git instead of Subversion. If this is the case, you should use the clean-all
target noted below before building again.
From a command prompt:
build.cmd
- runs the Event Store buildbuild.cmd clean-all
- cleans the repository
Optional parameters (Specified using -ParameterName value
)
-Platform
-x64
(default) orx86
-Configuration
-release
(default) ordebug
-Version
- the semantic version number to give to the release. Defaults to version0.0.0.0
which should be used for all non-released builds.-SpecificVisualStudioVersion
-2010
,2012
,2013
,Windows7.1SDK
. Default is to use whichever version is installed - this only needs to be overriden if you have multiple versions installed.-ForceNetwork
- true if you want to force the script to get dependencies even if Windows thinks theres no network connection (otherwise we don't try to avoid sometimes lengthy delays).-Defines
- any additional defines you want to pass to the compiler. Should be enclosed in single quotes
Building the Event Store from Visual Studio
If you want to build from Visual Studio, it's necessary to first build from the command line in order to buildjs1.dll
which incorporates V8. When this is available in the src\EventStore\Libs\
directory, it is possible to build the src\EventStore\EventStore.sln
solution from within Visual Studio.
When building through Visual Studio, there are PowerShell scripts which run as pre- and post-build tasks on the EventStore.Common project, which set the informational version attribute of the EventStore.Common.dll assembly to the current commit hash on each build and then revert it.
Unfortunately Visual Studio runs these scripts in 32-bit PowerShell. Since it's most likely that you're running 64-bit PowerShell under normal circumstances, the execution policy of 32-bit PowerShell will probably prohibit running scripts. There is a batch file in the root of the repository named RunMeElevatedFirst.cmd
which will set the execution policy for 32-bit PowerShell if you run it as Administrator. Obviously you may want to audit what the script does before executing it on your machine!
Debug Builds on Linux (Ubuntu 12.04) / Mono
Prerequisites
- git on
PATH
- Mono version 3.2.3 or greater on PATH
- svn on
PATH
- gcc installed
Building the Event Store
./build.sh <target> <version> <platform> <configuration>
target
is one ofquick
,incremental
orfull
(see above)version
is the semantic version to applyplatform
- either x86 or x64 (defaults to x64)configuration
- either debug or release (defaults to release)
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)