Skip to content

Forwarding FIN4 contract events to connected clients, email subscribers and a telegram bot

License

Notifications You must be signed in to change notification settings

FuturICT2/FIN4NotificationServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FIN4NotificationServer

Forwarding FIN4 contract events to connected clients, email subscribers and a telegram bot

Config file

The file config.json at root level must be added and filled.

{
    "INFURA_API_KEY": "",
    "CONTRACTS_BUILD_DIRECTORY": "../FIN4Xplorer/src/build/contracts",
    "FIN4MAIN_ADDRESS": "",
    "TELEGRAM_BOT_TOKEN": "",
    "AWS_SES": {
        "KEY": "",
        "SECRET": "",
        "REGION": "https://email.eu-central-1.amazonaws.com"
    },
    "THIS_URL": "https://notifications.finfour.net",
    "FIN4_URL": "https://demo.finfour.net"
}

MongoDB

Install MongoDB on Ubuntu (via here):

sudo apt update
sudo apt install -y mongodb

If that doesn't work, try these instructions.

Check the MongoDB status using sudo systemctl status mongodb. Find the location of the database folder using grep -i dbPath /etc/mongod.conf.

To see what's in the database, run mongo and then show dbs to see all databases. Switch to our database using use notification_server and then use show collections to see available collections. db.email_subscribers.find() and db.telegram_subscribers.find() reveales the respective entries. Use db.collection-name.drop() to delete a collection. With exit you can get out again.

About

Forwarding FIN4 contract events to connected clients, email subscribers and a telegram bot

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published