Skip to content

Demux blockchain event sourcing implementation for BeSpiral contracts

License

Notifications You must be signed in to change notification settings

cambiatus/event-source

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cambiatus event-source

Development

Add the linter pre-commit hook:

vim .git/hooks/pre-commit

And add the following:

#!/bin/bash

# Ensure all JavaScript files staged for commit pass standard code style
function xargs-r() {
  # Portable version of "xargs -r". The -r flag is a GNU extension that
  # prevents xargs from running if there are no input files.
  if IFS= read -r -d $'\n' path; then
    { echo "$path"; cat; } | xargs $@
  fi
}
git diff --name-only --cached --relative | grep '\.jsx\?$' | sed 's/[^[:alnum:]]/\\&/g' | xargs-r -E '' -t node_modules/.bin/standard
if [[ $? -ne 0 ]]; then
  echo 'JavaScript Standard Style errors were detected. Aborting commit.'
  exit 1
fi

Build and running

yarn

# Make sure you ran the migration from the `backend` repo to initialize the tables
yarn start

About

Demux blockchain event sourcing implementation for BeSpiral contracts

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published