Giter Club home page Giter Club logo

blackjade's Introduction

Blackjade

29/01/2023 - Present

blackjade blockchain screen

Description

Blackjade is a peer-to-peer blockchain API built from scratch, primarily using the MERN stack of technologies. This is currently a work in progress, with the main blockchain implementation already completed. It will be deployed as soon as authentication is completed and the frontend is polished.

Prerequisite Setup

  1. Install Redis locally on the same machine.
  2. Create a .env at the root level of the project.
  3. The file should contain the following variables:
blackjade/.env

REDIS_URL="redis://localhost:6379"
ROOT_NODE_ADDRESS="http://localhost:3000"
  1. If you installed Redis on another devices in your network, modify the following settings:
/etc/redis/redis.conf

protected-mode no
# requirepass < comment this out
  1. After that change, your .env should look like:
blackjade/.env

REDIS_URL="redis://192.168.0.106:6379" < ip address of the redis node
ROOT_NODE_ADDRESS="http://localhost:3000"

How to run the Blockchain

  1. Open two terminals I will call them t1 and t2.
  2. Start the blockchain server API
(t1)$ cd server
(t1)$ npm run dev
  1. Start the client vite server.
(t2)$ cd client
(t2)$ npm run dev
  1. Run the filler scripts to populate the blockchain
(t1)$ npm run fill-blocks
(t1)$ npm run fill-txpool
  1. Go to http://localhost:5173 to view

technologies used

mongodb express react nodejs typescript redis

blackjade's People

Contributors

tatumroaquin avatar dependabot[bot] 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.