os.Relife : A flutter lifestyle web3 app

takeaswing420

Deep Mondal

Posted on April 20, 2024

os.Relife : A flutter lifestyle web3 app


Team Details

Me (currently)

Description of Project

Through this app one can earn tokens via challenges, redeem those to get bonuses.

We also have Live location tracking during chllenges. The main motive of this project was to build an application similar to STEPN with the exception of users will not have to buy custom sneakers to complete tasks using their own cryptocurrency.

Instead, I made an in-app currency named Relife token using openzeppelin ERC20 protocol and all the transactions fee will be covered by the contract deployer.

Marketing Strategy:

  1. We can tie up with companies (like refreshment drink selling and
    insurance companies) to cover the expenses in return of their product promotion to our users during challenges.

  2. I also implemented feature of staking some coins as participation fee for certain challenges to ensure integrity.

  3. We can later adopt a freemium model if needed with more features.

Submission Track:

  1. Polygon Ethereum track
  2. Rebase Blockchain track

Overview of My Submission

os.Relife is aiming to connect socially challenged individuals through challenges that earn them "Relife tokens" redeemable for bonuses. Live location tracking enhances engagement. This also covers transaction fees and plans to offset costs via partnerships. The project prioritizes transparency with public code repositories and thorough documentation.

Tech Stack

FrameWorks
Flutter
Node.js
ethers.js

Tools
Postman
OpenRouteService
Pinata IPFS

Languages
Solidity
JavaScript
Dart

Challenges We Faced

  • We are returning a private key for security measures(based on the Proof of Knowledge concept)...but if each time while logging into the app, user has to give all the credentials he/she would be intimidated. So I implemented an access token feature.

  • Initially my plan was to deploy this project on Polygon zkEVM.
    But owing to deprecation of previous testnet in the start of april and unavailability of test funds I went with Sepolia.

  • To give user a better experience, web3model has been employed to directly connect to your metamask or any other wallet
    from the app through deep linking.

Public Code Repo

os.Relife

os.Relife is an app targeted for socially challenged people which will help them get upskill bonuses and incentives by completing challenges.

Setup

Before starting, please ensure you have set the following environment variables in a .env file:

API_KEY=your_openrouteservice_api_key
JWT=your_jwt_secret_key

Open Route Service
I have hosted the server on AWS. If you want to run the server locally, change the baseURL in the dbmshelper.dart file.

Running the App

After doing so, run the app by executing the following command in your terminal:

flutter run
Enter fullscreen mode Exit fullscreen mode

Contributing

Feel free to contribute to this project by forking it and submitting a pull request. I welcome any improvements or suggestions! Also every plugin used in this project is free and open source.





os.Relife

os.Relife is an app targeted for socially challenged people which will help them get upskill bonuses and incentives by completing challenges.

Setup

Before starting, please ensure you have set the following environment variables in the .env file:

PRIVATE_KEY=your_private_key
JWT_SECRET=your_jwt_secret_key
CONTRARCT_ADDRESS=your deployed contract's address

Also change the RPCURL in the web3helper.mjs file.

Running the App

After doing so, run the app by executing the following command in your terminal:

npm start
Enter fullscreen mode Exit fullscreen mode

Contributing

Feel free to contribute to this project by forking it and submitting a pull request. I welcome any improvements or suggestions! Also every plugin used in this project is free and open source.





Doc proposal

All details and figma template source credits are in the doc.

project proposal

💖 💪 🙅 🚩
takeaswing420
Deep Mondal

Posted on April 20, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related