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.
- Install Redis locally on the same machine.
- Create a
.env
at the root level of the project. - The file should contain the following variables:
blackjade/.env
REDIS_URL="redis://localhost:6379"
ROOT_NODE_ADDRESS="http://localhost:3000"
- 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
- 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"
- Open two terminals I will call them
t1
andt2
. - Start the blockchain server API
(t1)$ cd server
(t1)$ npm run dev
- Start the client vite server.
(t2)$ cd client
(t2)$ npm run dev
- Run the filler scripts to populate the blockchain
(t1)$ npm run fill-blocks
(t1)$ npm run fill-txpool
- Go to
http://localhost:5173
to view