Blockchain Technology is going to be needed in every industry. It is already helping and revolutionizing various sectors. With the increasing demand of Blockchain Technology the Blockchain development is going to be an integral part. As Blockchain developers you will be having a good scope in the coming months and years. Blockchain development is where all the focus of IT companies should be as it is and will be in demand for next few years.
Fitness Club Rewards
You already know the importance of Blockchain Technology in the Finance space. It is soon going to be used in many other fields as well. Fitness industry is blooming and its essential for being fit for a healthier and more happier lifestyle. To serve this purpose we see a lot of fitness clubs emerging globally.
Fitness clubs can implement Blockchain Technology for retaining their existing members and creating a much better ecosystem for them. The problem of retaining the members can be solved with Fitness Club Rewards.
Well if we include gamification or incentivization then there is more engagement of the fitness club members. So to keep the members motivation they can earn some coins and then redeem it for rewards. So lets name these coins as Fitcoins.
Fitcoins
These are the digital tokens rewarded to the user for performing some activities. Now these activities can be tracked by using IoT. With Blockchain we can implement the digital tokens Fitcoins.
The members will be motivated to earn as many fitcoins as possible as these can be redeemed for rewards. The rewards can be designed by the fitness clubs which can be like giving 1 month of membership for X number of Fitcoins. They can also give gifts like Protein, diet plans or even gym accessories.
The fitness club rewards program will be useful for the fitness club owners to increase the engagement and enthusiasm of their members. This kind of reward system will also attract new members and it can be a USP of the club.
Flow of the Project
In this tutorial you will learn how to implement the Fitness Club Reward system using IoT tracking and blockchain implementation by introducing fitcoins.

- Installation of Hyperledger Fabric and Hyperledger Composer
- Building and Deployment of Fitcoin Blockchain Network
- Building and running of Fitcoin Angular Web App
Before starting the project I urge you to checkout all the Pre-requisites here.
If you are using Ubuntu, you can download the prerequisites using these following commands:
curl -O https://hyperledger.github.io/composer/latest/prereqs-ubuntu.sh
chmod u+x prereqs-ubuntu.sh
Next step is to run the script as this briefly uses sudo during its execution, you will be prompted for your password.
./prereqs-ubuntu.sh
- A) Installation of Hyperledger Fabric and Hyperledger Composer
Step 1: Installation of CLI Tools
The first step will be to install the useful CLI tools for the composer, which are essential. The composer(-cli) contains all the essential operations. We will also do the installation of the composer-rest-server.
a)Use of CLI Tools
npm install -g composer-cli@0.20
b) Installation of rest server
npm install -g composer-rest-server@0.20
We have now done the installation of CLI tools and rest server. Let us go ahead by installing the Playground.
Step 2: Installation of Playground
This installation of Playground helps you to get User Interface for viewing and demonstrating your business networks.
npm install -g composer-playground@0.20
Step 3: Downloading of the Hyperledger Fabric Docker Containers
./downloadFabric.sh
Controlling the Blockchain Environment
Command for starting the servers:
./startFabric.sh
When starting the server for first time you need to load the Admin card in the network
./createPeerAdmin.sh
Run this command to stop the servers when required
./stopFabric.sh
Awesome! You have got a working Hyperledger Fabric and Composer Environment
- B) Building and Deployment of Fitcoin Blockchain Network
Step 1: Building the Network archive – bna file
So within the wolfpack-fitclub-fitcoin directory, run the command:
npm install
All the useful modules will be running behind the script for building the network archive.
Step 2: Deployment of blockchain bna (business network archive)
You should implement in the Hyperledger Fabric Engine ./wolfpack-fitclub-fitcoin/dist
composer network install --archiveFile wolfpack-fitclub-fitcoin.bna --card PeerAdmin@hlfv1 composer network start --networkName wolfpack-fitclub-fitcoin --networkVersion 0.0.2 --card PeerAdmin@hlfv1 --networkAdmin admin --networkAdminEnrollSecret adminpw
Step 3: Creation of Composer card for connecting to the Network
composer card create -n wolfpack-fitclub-fitcoin -p ../../fabric-dev-servers/DevServer_connection.json -u admin -s adminpw
After entering the above command you will see a successful message:
Successfully created business network card file to Output file: admin@wolfpack-fitclub-fitcoin.cardCommand succeeded
Step 4 : Importing the Composer Card into the Composer Wallet
composer card import -f admin@wolfpack-fitclub-fitcoin.card
After implementing the command you will see a successful message.
Step 5: Testing the composer if its listening or not
In the command line, enter:
composer network ping -c admin@wolfpack-fitclub-fitcoin
You will see:
The connection to the network was successfully tested: wolfpack-fitclub-fitcoin Business network version: 0.0.2 Composer runtime version: 0.20.0 participant: org.hyperledger.composer.system.NetworkAdmin#admin identity: org.hyperledger.composer.system.Identity#6f8e156dde4d67f9c1c10cd4180b3fd5d9c7238b8039c306a7dc26a87eb74521 Command succeeded
Step 6: Starting Composer REST Server:
This Composer REST Server generates set of API’s based on the Composer Model.
composer-rest-server -p 3020 -c admin@wolfpack-fitclub-fitcoin -n never
Step 7: Loading of Sample Data
We will now load sample data. A Club named as WolfPack Elite, a few members and few stores and products.
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"$class":"org.fitclub.fitcoin.SetupDemo"}' 'http://localhost:3020/api/SetupDemo'Step 8: Testing of the Data whether Loaded or not
curl -X GET --header 'Accept: application/json' 'http://localhost:3020/api/Member'
You will see the data returned in json format like this:
[{“$class”:”org.fitclub.fitcoin.Member”,”club”:”resource:org.fitclub.fitcoin.Club#CLUB_001″,”memberStatus”:”ACTIVE”,”personId”:”MEMBER_001″,”personFirstName”:”Chris”,”personLastName”:”Tyler”,”fitCoinWallet”:”resource:org.fitclub.fitcoin.FitcoinWallet#MEMBER_001″},{“$class”:”org.fitclub.fitcoin.Member”,”club”:”resource:org.fitclub.fitcoin.Club#CLUB_001″,”memberStatus”:”ACTIVE”,”personId”:”MEMBER_002″,”personFirstName”:”Darrel”,”personLastName”:”Pyle”,”fitCoinWallet”:”resource:org.fitclub.fitcoin.FitcoinWallet#MEMBER_002″},{“$class”:”org.fitclub.fitcoin.Member”,”club”:”resource:org.fitclub.fitcoin.Club#CLUB_001″,”memberStatus”:”ACTIVE”,”personId”:”MEMBER_003″,”personFirstName”:”Ashley”,”personLastName”:”Troggio”,”fitCoinWallet”:”resource:org.fitclub.fitcoin.FitcoinWallet#MEMBER_003″}]
Awesome! Now you have a working blockchain with data.
- C) Building and running of Fitcoin Angular Web App
The users will be able to interact the Blockchain using a UI written with Node.js and Angular 2 (6.x) framework.
Step 1: Installing the Web App
From the ./fitcoin-app directory you can enter the below command to install all the components locally
npm install
It will take few minutes to install.
Step 2: Running the web app
Make sure that you have started the Composer REST Server and you have run the SetupDemo transaction to load Data.
npm start
This will start the web app in this link http://localhost:3000 So open a web browser and visit the app.
Step 3: Accessing the Fitcoin Application
Finally now this is the screen where you see all your hardwork in the Web UI.

From this app you can do the following things with ease:
- Add new members to the Fitness Club (new members are loaded with 100 fitcoins by default)
- Members can gain more Fitcoins
- Members can Redeem their hard earned Fitcoins with affiliated stores of the Club
- Members can see their Fitcoin History
- Club Admins can easily inactivate members.
Step 4: Add New Members
You can easily add new members, by clicking on the “Create a New Member” Button.
Step 5: Adding Fitcoins to Members
Now it’s upto you if you want to give Fitcoins to members. This can be a rewarding task, by clicking on the third icon in the “Member Actions Column”. In this way you can easily add 25 Fitcoins to the members with one click. You can do so for rewarding the member to visit the gym. It can be for doing any fitness activity, like running on a treadmill. Also you can give fitcoins if the member refers another member to the club.
Step 6: Redeem Fitcoins
If you want to Redeem Fitcoins, it can be done with ease by clicking on the second symbol from the Member Actions Column. Here you will see this Redemption Form:

In this way you can redeem Fitcoins from the member’s wallet to the store’s wallet.
Step 7: Activity History
You can view the Activity History of the member by clicking on the Fitcoins Balance. You can refresh the page before doing so. When you click on the Fitcoins Balance of a member you will see a list of all the Fitcoin Transactions:

Step 8: Removing Inactive Members
As an admin you can now easily remove the Inactive members by clicking on the close symbol (Placed 4th in the Member Actions Column) next to the name of the member. Once you do it the member will be removed from the list of the members.
Wrapping Up
We hope you enjoyed the process of creating Blockchain for Tracking Fitness Club Rewards. You can check out various other Code Patterns here for the next level of code learning.
Nikhil Narkhede
Latest posts by Nikhil Narkhede (see all)
- Fast Charging Phones : The Ultimate Guide for 2026 Buyers - January 8, 2026
- Aiarty Image Matting Review: Precision Background Removal Made Simple - January 7, 2026
- Best Type C Charger with Long Wire (Fast & Reliable) - January 6, 2026