What Will I Learn?
- You will learn how to install fossbot vote on localhost.
Difficulty
Intermediate
you must have installed the following requirements,otherwise you may find these tutorials difficult.
Requirements
- node.js (https://nodejs.org/es/)
- mongodb (https://www.mongodb.com/es)
- heroku (https://www.heroku.com/)
Tutorial Contents
we need to clone or download the fossbot voter repository ( https://github.com/Steem-FOSSbot/steem-fossbot-voter)
After the download, we go to the folder where we cloned or extracted the bot and open a terminal,
in which we will execute the following commands one after the other
npm install
npm rebuild
with this we have the bot ready to be executed.
to run the bot we must use the heroku console, to use that console we must simply execute the command "heroku", but first we must create a file with .env extension
which must contain the following :
STEEM_USER=test
POSTING_KEY_PRV=testpostingkey
BOT_API_KEY= testapikey
EMAIL_ADDRESS_TO=none
EMAIL_ADDRESS_SENDER=none
SENDGRID_API_KEY=none
COOKIE_SECRET=pk7uKiAbQHcVxNBLQVnBwbwd
VERBOSE_LOGGING=false
MONGODB_URI=testmongodburi
taking a bit of the installation tutorial we will explain the variables a bit, you can check tutorial
here
- STEEM_USER, set to your user name, without a preceding "@" symbol.
- POSTING_KEY_PRV, set to your private Steemit posting key, used to cast votes.
- BOT_API_KEY, set to any alphanumeric key you generate to grant access to your bot. Used to authenticate bot actions, such as start bot, as well as third party access.
- COOKIE_SECRET Change this to a random string to secure your sessions cookies, where your BOT_API_KEY will be stored in the browser. It doesn't matter what it is but make it unique.
- VERBOSE_LOGGING sets console logging to verbose if true, but is false by default as this will speed the bot run up somewhat. Leave off unless you are checking out an error or developing this software.
- MONGODB_URI the standard format of the MongoDB connection URI used to connect to a MongoDB database server, example : mongodb://localhost:27017/
Once the file is created, we will execute the bot with the following command
heroku local -e env.env
If the whole process went well, you must access through a browser to the address that gave us heroku which is usually http://localhost:5000/ and we will see the following screen:
we will place the password that we assign in the file and we will be ready to use the bot
Posted on Utopian.io - Rewarding Open Source Contributors
Hi! I am a robot. I just upvoted you! I found similar content that readers might be interested in:
https://github.com/Steem-FOSSbot/steem-fossbot-voter/blob/master/docs/installation.md
Your contribution cannot be approved because it does not follow the Utopian Rules.
The contribution cannot be approved because:
The contribution doesn't follow the rules:
You can contact us on Discord.
[utopian-moderator]