I started my codeheat journey in October last year which was the time when I myself started with open source. During Codeheat all the work I did was on Open Event Android project. Broadly i worked on creating menu options for showing event details to the users
A sample Node.js app to demonstrate fabric-client & fabric-ca-client Node.js SDK APIs
- Docker - v1.12 or higher
- Docker Compose - v1.8 or higher
- Git client - needed for clone commands
- Node.js v8.4.0 or higher
We call node js a run time environment for executing javascript code. Before node we use javascript only to run applications that run inside the browser, they cannot use the resources of the machine they were working on. So to get that working every browser had a javascript engine that converted for example microsoft edge uses chakra, firefox uses spidermonkey and chrome uses v8(which is the fastest).
In 2019 Ryan Dhal came up with an extraordinary idea. He took the fastest javascript engine and eclosed it in a c++ program and called it node.exe. So similar to a browser node is a runtime environment for javascript code that has the capability of running javascript code outside the browser. It provides us the capability to interact with several objects that can provide us the functionality to perform tasks that cannot be performed on the browser. Like the filesystem(fs) module or the http module. Both chrome and node share the same javascript engines but provide different run
Since we can create and manage web servers using the http module why do you think there is a need for a framework like express. To understand that Let us create a server
const http = require('http');
const server = http.createServer((req, res) => {
if(req.url == '/') {
console.log("base url hit")
- clone the repository
https://github.com/hyperledger/fabric-ca
in the directory where you have your golang installed and inside the directory into the following subdirectory/src/github.com/hyperledger
- cd into the cloned fabric-ca directory
- run the command
make fabric-ca-server
andmake fabric-ca-client
inside fabric-ca, to generate the client and server executable which would be located inside the bin folder of the current directory.
- export the following path variable
export PATH=$PATH:~/go/src/github.com/hyperledger/fabric-ca/bin
This post is a step by step tutorial for adding multiple datasets to an activity in Gcompris.
The procedure of adding multiple datasets to an activity is fairly simple in Gcompris. The steps for it are given below.
Note: In these steps we'll refer the activity in consideration as current_activity. Also we assume that we plan to add 3 datasets to current_activity.
- Add the following line to current_activity/ActivityInfo.qml file
levels: "1,2,3"
I was trying to add a new org to my existing network using the Hyperledger Fabric node sdk. I turorial that i refrenced was https://fabric-sdk-node.github.io/tutorial-channel-create.html. Although the tutorial is for adding a new channel to a network, I assumed that the approach for updating the channel configs would be somewhat similar to creating a new channel configuration.
The api that I created using the tutorial and referencing the existing apis in the project is as follows.
/**
* Copyright 2017 IBM All Rights Reserved.
For Google Summer of Code 2019, I am working on KDE community's project Gcompris. GCompris is a high quality educational software suite, including a large number of activities for children aged 2 to 10. Currently GCompris offers more than 100 activities, and more are being developed. For me the journey from making my first contribution to Gcompris, to my Google Summer of Code Project has been very interesting, and in this post I'll be discussing about my GSoC project i.e Adding multiple datasets to Gcompris
Most of the activities are provided a dataset in json(mostly) format, which contains data about the various parameters of an activity separated in various levels that determine the functioning of the activity.