Api for ERC-20 token http://erc-20.io
Use npm
instead of yarn
until the following web3/yarn bugs are resolved:
Installation
$ brew install arangodb
After installing, create the database tokens-api
.
Create an .env
file mirroring .env.example
and set the database connection values in it.
You'll need to enable auth on your arangodb instance
Connect to the database
$ arangosh --server.endpoint tcp://127.0.0.1:8529 --server.database "_system"
Set password to enable auth
arangosh> require("org/arangodb/users").save("root", DB_PASSWORD);
next you need to migrate the database
$ npm run automigrate
or for a specific model
$ npm run automigrate ModelName
If you don't have Redis installed, install it.
Install Redis on Mac - You need Homebrew for this.