Skip to content

Instantly share code, notes, and snippets.

@mdcaddic
Last active March 4, 2020 17:07
Show Gist options
  • Save mdcaddic/076e7960f7b8bff047707ced4d48ef33 to your computer and use it in GitHub Desktop.
Save mdcaddic/076e7960f7b8bff047707ced4d48ef33 to your computer and use it in GitHub Desktop.

Installing Green Gekko

References

Get Green Gekko (https://github.com/mark-sch/gekko)

Install postgres (https://computingforgeeks.com/install-postgresql-12-on-ubuntu/)

Green Gekko Installation

  1. Create a virtual machine in Google Cloud compute (ubuntu 19.10) or Azure (18.04 LTS)
  2. Enable ssh and connect via putty (or not)
  3. Install git if required (sudo apt install git)
  4. Install build dependencies (sudo apt-get install build-essential)
  5. Install npm if required (sudo apt install npm)
  6. curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
  7. sudo apt-get install -y nodejs
  8. git clone https://github.com/mark-sch/gekko
  9. cd gekko
  10. Install tulip and talib (npm i talib tulind)
  11. npm install
  12. cd exchange
  13. npm install

Postgres Install

  1. wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
  2. echo "deb http://apt.postgresql.org/pub/repos/apt/ lsb_release -cs-pgdg main" |sudo tee /etc/apt/sources.list.d/pgdg.list
  3. sudo apt update
  4. sudo apt upgrade
  5. sudo apt -y install postgresql-12 postgresql-client-12
  6. sudo service postgresql start

Configure Postgres

  1. sudo -u postgres psql
  2. psql -c "alter user postgres with password 'StrongAdminP@ssw0rd'"
  3. create user gekkodbuser with encrypted password '1234';
  4. alter role gekkodbuser createdb;

Other stuff to mke your life easier

  1. Install pm2 (sudo npm install pm2 -g)
  2. Create aliases (edit ./bashrc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment