Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cambiatus/event-source
Demux blockchain event sourcing implementation for BeSpiral contracts
https://github.com/cambiatus/event-source
demux eos eosio javascript
Last synced: about 2 months ago
JSON representation
Demux blockchain event sourcing implementation for BeSpiral contracts
- Host: GitHub
- URL: https://github.com/cambiatus/event-source
- Owner: cambiatus
- License: agpl-3.0
- Created: 2018-08-28T14:25:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T19:23:26.000Z (about 2 years ago)
- Last Synced: 2023-03-10T23:08:02.581Z (almost 2 years ago)
- Topics: demux, eos, eosio, javascript
- Language: JavaScript
- Size: 2.39 MB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cambiatus event-source
## Development
Add the linter pre-commit hook:
```
vim .git/hooks/pre-commit
```And add the following:
```shell
#!/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
```sh
yarn# Make sure you ran the migration from the `backend` repo to initialize the tables
yarn start
```