Giter VIP home page Giter VIP logo

blockchain-developer-bootcamp-final-project's Introduction

blockchain-developer-bootcamp-final-project

my public ethereum account:

0x07889DEFeB525F614A0293ca49036f7950F6dbac

Smart-contract based premium podcast membership

A podcast membership dApp deployable on EVM-compatible blockchains, in which subscribers must pay pledge for each episode they want to have access to.

Project will be using smart-contracts as back-end service and will have a UI developed using ethers.js, Next.js, tailwindcss.

directory structure

📦project
|	🧾LICENSE
|	🧾README.md
|	🧾package.json
|	🧾truffle-config.js
|
|-	📁client
|	|-	📁components
|	|-	📁contexts
|	|-	📁hooks
|	|-	📁pages
|	|-	📁public
|	|-	📁styles
|
|
|-	📁contracts
|	|	🧾EthRadio.sol
|	|	🧾Migration.sol
|
|
|-	📁migrations
|	|	🧾1_initial_migration.js
|	|	🧾2_deploy_contracts.js
|	|	🧾3_upgrade_ethradio_contract.js.template
|
|
|-	📁test
	|	🧾eth_radio.test.js
	|	🧾helper.js

Dependencies and deployment

To install dependencies:

npm install

To spin-up a truffle development environment and deploy contract for development purposes. Configured network in truffle-config.js is named develop and runs on port 8545:

#	truffle dev env running on http://127.0.0.1/8545
#	network_id: 5777
npm run dev

To compile the contract and get a ready-to-deploy output:

npm run build

To run truffle tests located under /test:

npm run test

Front-end

In order to spin-up front-end app in development env:

cd client

# install frontend dependencies
yarn install

# spin-up development version
yarn dev

In order to build front-end app (production-ready):

cd client
yarn build

Details

  • Subscribers will get access to newly published episodes while they have enough balance delegated to the smart-contract.
  • Contract owner is able to publish new episodes, withdraw funds from contract, destroy contract and give refunds to subscribers (remaining balance not used to get access to episoded).

blockchain-developer-bootcamp-final-project's People

Contributors

mjtbkh avatar

Stargazers

 avatar

Watchers

 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.