Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Immutable, scalable, and easy to use ledger service.

License

NotificationsYou must be signed in to change notification settings

hoophq/sequence

Repository files navigation

Sequence CI

Sequence

Sequence is an API that store validate and reports asset movements. Also known as a Ledger. Sequence is immutable, scalable, and easy to use.

The key features of Sequence are:

  • Multi-Currency: Store, move and analyse any asset, from regular currencies like USD, to shelf items.

  • Multi-Tenant: Run multiple ledgers using the same infrastructure. Simply setup multiple tenants in the configurations and use the different API keys.

  • No-SQL powered: Sequence runs on top of a No-SQL database. It is horizontally scalable from the 12-factors container to the persistency layer.

  • Immutable: Most existing ledger use database updates. This is bad for a ledger. Sequence is immutable. The design of the database allows for consistency of balances without a single field using updateds.

  • API simplicity: Sequence creates things as you use them. When you send value to an account, it is gets created if it does not exist. It gets out of the way. Use it, and things will work.

  • Analytics: Send asset movement events to multiple destinations. Use it for analytics, fraud-detection, anything.

Getting Started

docker-compose

  1. Clone and cd into the repository
  2. Use docker-compose to bring up DynamoDB local and Sequence
git clone https://github.com/decimals/sequence.gitcd sequencedocker-compose up

Docker

  1. Start the DynamoDB local container
  2. Start the Sequence container
docker run -p 8000:8000 amazon/dynamodb-localdocker run -p 8910:8910 docker.pkg.github.com/decimals/sequence/sequence:0.0.1

Configurations

All configurations are loaded from environment variables. The available configurations are:

environment variableconfigurationdev profile
DYNAMODB_ENDPOINTThe host for the DynamoDB instance. Mostly used for local development.http://localhost:8000
SEGMENT_KEYOptional Segment.io key to generate analytics events.
KEYSA string with a list of tenants and theirsha256 API keys digests. In json format.[{ "name": "test","email": "test@decimals.app", "public-key": "abc", "secret-key-hash": "a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3"}]
ALLOWED_ORIGINSA list of accepted CORS hosts. Example:ALLOWED_ORIGINS= '["https://decimals.stoplight.io"]'

Configurations can also be loaded from theprofiles.clj file, where the dev configurations are setup.

Developing Sequence

  1. Start a new REPL:lein repl
  2. Start Sequence in dev-mode:(def dev-serv (start-dev))
  3. Connect your editor to the running REPL session.Re-evaluated code will be seen immediately in the service.

Links


[8]ページ先頭

©2009-2025 Movatter.jp