Skip to content

CryptoPay is a blockchain-based application for cryptocurrency transactions. This project includes a smart contract deployed on the blockchain and a frontend application to interact with the contract.

Notifications You must be signed in to change notification settings

heyritikk/Cryptopay-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Cryptopay-

React.js JavaScript HTML5 CSS3 JSX Solidity Truffle Ganache Ethereum Web3.js

CryptoPay

CryptoPay is a blockchain-based application for cryptocurrency transactions. This project includes a smart contract deployed on the blockchain and a frontend application to interact with the contract.

Project Structure

Root Directory

  • .gitignore: Specifies files and directories to be ignored by Git.
  • README.md: Provides a detailed description of the project, including setup instructions.
  • package-lock.json: Describes the exact dependency tree generated at the time of npm install.
  • package.json: Contains metadata about the project and its dependencies.
  • yarn.lock: Ensures that the same dependency versions are installed with Yarn.

public Directory

  • favicon.ico: The icon for the web application.
  • index.html: The main HTML file for the application.
  • logo192.png, logo512.png: Logo images for the web application.
  • manifest.json: Configures how the web application will behave when installed on a device.
  • robots.txt: Provides guidelines for search engine crawlers.

smart_contract Directory

  • truffle-config.js: Configuration file for Truffle, a development environment for Ethereum.
  • build/contracts/: Contains JSON files generated by Truffle after compiling the smart contracts.
  • contracts/: Contains the Solidity smart contract files.
    • Migrations.sol
    • Transactions.sol
  • migrations/: Contains migration scripts for deploying the smart contracts.
    • 1_initial_migration.js
    • 2_deploy.js
  • test/: Directory for writing tests for the smart contracts.

src Directory

  • App.css, App.js, App.jsx: Main application files.
  • index.css, index.js: Entry point of the React application.
  • main.jsx: Main file for the application.
  • assets/: Contains images and other static assets.
  • components/: Contains React components.
    • AdsBanner.jsx
    • Navbar.jsx
    • activity/ActivityCard.jsx
    • transaction/TransactionForm.jsx
  • context/: Contains context files for state management.
    • TransactionContext.jsx
    • context.js
  • styles/: Contains CSS modules for styling.
    • Activity.module.css
    • AdsBanner.module.css
    • App.module.css
    • Navbar.module.css
    • Transaction.module.css
    • global.css
  • utils/: Contains utility files.
    • Transactions.json
    • constants.js
    • shortenAddress.js

Technical Skills Used

  • Frontend Development: React.js, JavaScript (ES6+), HTML5, CSS3, JSX, CSS Modules.
  • Smart Contract Development: Solidity, Truffle, Ganache.
  • Blockchain Technology: Ethereum, Web3.js.
  • State Management: React Context API.
  • Backend Integration: RESTful APIs.
  • Build Tools: Node.js, npm, Yarn.
  • Version Control: Git, GitHub.
  • Development and Deployment Tools: VS Code, MetaMask.
  • Miscellaneous: JSON, Manifest Files.

Getting Started

Prerequisites

  • Node.js
  • Truffle
  • Ganache
  • MetaMask

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/your-repository.git
    cd your-repository
  2. Install dependencies:

    npm install
  3. Compile the smart contracts:

    truffle compile
  4. Migrate the smart contracts to the blockchain:

    truffle migrate
  5. Start the React application:

    npm start

Usage

Provide instructions on how to use the application here.

Contributing

Provide instructions on how to contribute to the project here.

License

Include your preferred license here.

About

CryptoPay is a blockchain-based application for cryptocurrency transactions. This project includes a smart contract deployed on the blockchain and a frontend application to interact with the contract.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published