Code Monkey home page Code Monkey logo

distributed-cache-on-blockhain's Introduction

Decentralized Cache System

Overview

This project aims to create a decentralized caching system using blockchain and Web3 technology.

Tech Stack

  • Backend: Node.js, TypeScript, Express
  • Blockchain: Ethereum Smart Contracts
  • Frontend: (To be decided)

Installation

  1. Clone the repo
    git clone https://github.com/nbursa/distributed-cache-on-blockhain.git
  2. Navigate to the backend directory
    cd src/backend
  3. Install NPM packages
    npm install
  4. Start Ganache CLI to run a local Ethereum node
    ganache-cli
  5. Run the backend server
    npm run dev

Usage

Access the current Ethereum block number at http://localhost:3001/block-number.

To initialize a Truffle project, follow these steps:

  1. Open your terminal or command prompt.

  2. Navigate to the directory where you want to create your Truffle project. Use the cd command to change directories. For example:

    cd src/blockchain/
  3. Run the following command to initialize a new Truffle project:

    npx truffle init

    This command tells Truffle to create a new project in the current directory. It sets up the basic project structure with directories like contracts, migrations, and test.

  4. Truffle will generate the project structure, and you'll see output indicating that it has created the necessary directories and files.

    Starting unbox...
    =================
    
    ? Please give us a few seconds
    ? Successfully created an empty project.
    ? Would you like to install OpenZeppelin contracts in your project? No / Yes
    ? Would you like to install OpenZeppelin test helper contracts in your project? No / Yes
    ? Would you like to install truffle-hdwallet-provider to deploy to a remote network? No / Yes
  5. Your Truffle project is now initialized, and you can start adding smart contracts, migrations, and tests to it.

You can navigate into the project directory and proceed with your smart contract development and deployment using Truffle.

License

This project is licensed under the MIT License - see the LICENSE file for details.

distributed-cache-on-blockhain's People

Contributors

nbursa 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.