百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

sequent

> DevOps
开源

适用于 Ruby 的 CQRS 和事件源分离框架

559 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

适用于 Ruby 的 CQRS 和事件源分离框架

Sequent

Sequent is a CQRS and event sourcing framework written in Ruby.

Getting started

See the official site at https://www.sequent.io/

New to Sequent? Getting Started is the place to be!

Contributing

Fork and send pull requests. You can setup a working development environment manually (see below) or by using https://devenv.sh with Nix. You can also use https://direnv.net/ do setup your environment automatically, see .envrc.example for the minimal configuration.

Then just run devenv up to start Postgres and Jekyll. Run devenv test to (re-)create the databases and run the specs.

Documentation

See the official site at https://sequent.io/

Want to help improve the documentation? Please let us know how we can improve by creating an issue

If you want to help write the documentation fork and send pull request.

You can start the documentation locally via:

bash
cd docs
bundle install
cp .env.example .env
bundle exec jekyll serve --livereload

Open localhost:4000

A GitHub personal access token is required if you want Jekyll to retrieve GitHub metadata information. Create a new personal access token (no scope is required) and configure it in the .env file.

Releasing

Ensure the version in lib/version.rb is the new version. If not change it and update the sequent version for all the gemfiles:

BUNDLE_GEMFILE=gemfiles/ar_7_2.gemfile bundle update sequent --conservative
BUNDLE_GEMFILE=gemfiles/ar_8_0.gemfile bundle update sequent --conservative

Commit the changes.

Then run rake release. A git tag will be created and pushed, and the new version of the gem will be pushed to rubygems.

Running the specs

Database setup

  • When using a local PostgreSQL database, create the user:
    bash
    createuser -D -s -R sequent
  • If you're not using a local Postgres database, setup the database using docker:
    bash
    docker run --name sequent -e POSTGRES_HOST_AUTH_METHOD=trust -e POSTGRES_USER=sequent -p 5432:5432 -d postgres:16

Create the database

Have Sequent create the database:

bash
SEQUENT_ENV=test bundle exec rake sequent:db:create

Run rspec spec to run the tests with the current database schema.

To ensure the specs use the latest database schema run:

SEQUENT_ENV=test rake sequent:db:drop sequent:db:create spec

Changelog

The most notable changes can be found in the Changelog

License

Sequent is released under the MIT License.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rubyactiverecordcqrseventsourcingeventstore

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理