Ruling system that monitors the Ethereum blockchain and make the right decision based on a given rule set
- Clone the repository with
git clone --depth=1 https://github.com/didox2/transaction-watch-dog
- Setup the .env file with your variables.
- Install the dependencies with npm
- Create the development and test databases you have setup on
config/database.js
- Add tools to create and update db
npm install --save -g pgtools sequelize-cli
- Create db running
createdbjs transaction-watch-dog --user=[db_username] --password=[db_password]
- Run the database migrations with
npm run sequelize db:migrate
- Add some seed data to the development database with
npm run sequelize db:seed:all
- Run the application in development mode with
npm run dev
- Access
http://localhost:3000/api/transactions
orhttp://localhost:3000/api/rules
dev
: Run the application in development modestart
Run the application in production mode (prefer not to do that in development)test
: Run the test suitetest:unit
: Run only the unit teststest:features
: Run only the features testscoverage
: Run only the unit tests and generate code coverage for them, the output will be oncoverage
folderlint
: Lint the codebasesequelize
: Alias to the Sequelize CLIconsole
: Open the built-in console, you can access the DI container through thecontainer
variable once it's open, the console is promise-friendly.