GithubHelp home page GithubHelp logo

franono / ixo-cellnode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ixofoundation/ixo-cellnode

0.0 0.0 0.0 38.31 MB

Elysian release of the Cell Node for decentralised processing and storage of project data.

License: Apache License 2.0

TypeScript 92.95% Shell 6.76% Dockerfile 0.21% JavaScript 0.08%

ixo-cellnode's Introduction

Cell Node (Elysian Release)

Instructions to set up the Elysian release of the Cell Node.
This runs a Node.js app using Express 4 in a dockerized container.

Running Elysian

Make sure you have Docker installed.

git clone https://github.com/ixofoundation/ixo_pds.git # or clone your own fork
cd ixo-cellnode/
npm install
cd bin
./start.sh

***********************************
* ELYSIAN START                   *
***********************************

WARNING: The create command is deprecated. Use the up command with the --no-start flag instead.
Creating db ... done
Creating cache ... done
Creating mq    ... done
Creating pol   ... done
Creating cli   ... done
Creating app   ... done
Starting db ... done
Starting mq ... done
Starting cache ... done
Starting pol ... done
Starting app ... done
Starting Elysian ...done
Attaching to app
app      | register handler.createProject
app      | register handler.createAgent
app      | register handler.updateAgentStatus
app      | register handler.submitClaim
app      | register handler.evaluateClaim
app      | register handler.listClaims
app      | register handler.listAgents
app      | (node:17) [DEP0010] DeprecationWarning: crypto.createCredentials is deprecated. Use tls.createSecureContext instead.
app      | (node:17) [DEP0011] DeprecationWarning: crypto.Credentials is deprecated. Use tls.SecureContext instead.
app      | Memcache connected
app      | MongoDB connected
app      | App listening on port 5000
app      | RabbitMQ connected

***********************************
* ELYSIAN START COMPLETE          *
***********************************

Handlers are registered according to the capability loaded from the configuration file from the /bin folder. Template defines where the schema template directory can be found and the allow determines who has access to specified capability.

{
	"configuration": [
		{
			"capability": "CreateProject",
			"template": "projects",
			"allow": [
				"did:sov:*",
				"did:ixo:*"
			],
		},
		{
			"capability": "CreateAgent",
			"template": "agents"
		},
		{
			"capability": "UpdateAgentStatus",
			"template": "agents"
		},
		{
			"capability": "SubmitClaim",
			"template": "claims"
		},
		{
			"capability": "EvaluateClaim",
			"template": "evaluations"
		},
		{
			"capability": "ListClaims",
			"template": "claims" 
		},
		{
			"capability": "ListAgents",
			"template": "agents" 
		}
	]
}
./stop.sh

***********************************
* ELYSIAN SHUTDOWN                *
***********************************

Stopping app   ... done
Stopping pol   ... done
Stopping mq    ... done
Stopping cache ... done
Stopping db    ... done
Going to remove app, cli, pol, mq, cache, db
Are you sure? [yN] y
Removing app   ... done
Removing cli   ... done
Removing pol   ... done
Removing mq    ... done
Removing cache ... done
Removing db    ... done

***********************************
* ELYSIAN SHUTDOWN COMPLETE       *
***********************************


To secure the Mongo DB:

docker exec -ti db /bin/bash
mongod
use admin
db.createUser({user: "<admin username>", pwd: "<admin password>", roles: [ { role: "userAdminAnyDatabase", db: "admin" } ]})

use admin
db.auth("<admin username>", "<admin password>" )

mongo --port 27017 -u "<admin username>" -p "<admin password>" --authenticationDatabase "admin"

use elysian
db.createUser({user: "<username>", pwd: "<password>", roles: [{role: "readWrite", db: "elysian"}]})

Documentation

API documentation can be found here.

License

ixo-cellnode's People

Contributors

brennonh avatar migueldingli1997 avatar herman-smith-socosm avatar stefaniatadama avatar cedricf avatar nicolaas0411 avatar franono avatar donnierisk avatar mullerfourie avatar ig-shaun avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.