Skip to content

croanlabs/eos-nodejs-kubernetes-starter-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EOS blockchain + Node.js + Kubernetes starter kit

Introduction

The aim of this project is to provide the simplest base configuration for a project using EOS blockchain, Node.js and Kubernetes. Take into consideration that a local instance of the EOS blockchain is set up, so your JS code will not be talking to the EOS network but to your local instance of the blockchain. The eosjs library is used to interact with the blockchain from the JS side.

Dependencies

Install the following dependencies before running the project:

  • Docker
  • Minikube
  • Kubectl

Run the following command to allow Minikube to work with the Docker deamon:

eval $(minikube docker-env)

Usage

Running the project

Run the start script to execute the project:

./start.sh

Clean restart

Run the restart script to delete the Kubernetes pods, services and deployments, re-build the nodejs-based Docker image to include your code and create the aforementioned Kubernetes entities again:

./restart.sh

Clean

Run the clean script to delete all the Kubernetes entities created by this program:

./clean.sh

Verify results

The status of the created Kubernetes entities (including logs) can be checked through the minikube dashboard:

minikube dashboard

Releases

No releases published

Packages

No packages published