/zilliqa-social-pay-v1-mirror

A mirror of Zilliqa's SocialPay 1.0 prototype.

Primary LanguageTypeScript

Zilliqa SocialPay

SocialPay is advertising platform, for each tweet with #zilliqa shoreham you can get rewards.

Environment variables.

  • TWITTER_CONSUMER_KEY
  • TWITTER_CONSUMER_SECRET
  • JWT_SECRET
  • SESSION
  • NUMBER_OF_ADMINS
  • CONTRACT_ADDRESS

Run:

Create database for only test or production mode.

$ npm run db:create
# or
$ npx sequelize db:create

Create all migrations:

$ npm run db:migrate
# or
$ npx sequelize db:migrate

More info on sequelize/cli.

Runing for dev mode.

$ npm run dev

Runing for production mode.

$ npm run build
$ npm run start

setup database:

  • sequelize config - server/config/config.json