Skip to content

Decentralized Medium-like platform, built on gno.land

License

Notifications You must be signed in to change notification settings

RezaRahemtola/gnovox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gnovox - A Medium-like platform on Gno

gnovox is a decentralized blogging platform inspired from Medium and built on top of the Gno.land blockchain.

gnovox allows you to connect with your Gno.land wallet, create accounts and share Markdown posts.

Built using the Gno.land tech stack, gnovox utilizes the Gno programming language for its backend, and a classic React UI using vite.

Run gnovox locally

gnovox consists of a React frontend, and a Gno backend (smart contract). The frontend and backend code can be found at ui/ and contract/ respectively.

Prerequisites

  • NodeJS
  • Yarn
  • Go 1.21+

1. Clone the gnovox repo

git clone [email protected]:RezaRahemtola/gnovox.git 

2. Set up environment variables

Update the constants.ts with your values

4. Set up a local development node with gnodev

gnodev is a tool that allows you to run a local Gno.land node effortlessly. To get started, install gnodev. To do this, clone the Gno monorepo:

git clone [email protected]:gnolang/gno.git 

From the root of the Gno repo, install the all the necessary binaries and tools following the next steps:

  1. Install the gno & gnodev binaries with the following command in the root of the cloned monorepo:
make install
  1. Run the gnodev binary in the gnovox repo, giving it paths to the package and realm:
gnodev ./contract/p/gnovox/ ./contract/r/gnovox/

Running this command will spin up a local node that the gnovox UI will be able to connect to.

Make sure that the chain RPC endpoint that gnodev is running on matches the one in the constants.ts file.

3. Start the frontend with vite

Start by running yarn in the front/ folder. After yarn has installed all the dependencies, run yarn dev.

Conclusion

Congratulations! You are now officially running a local frontend connected to gnovox!

About

Decentralized Medium-like platform, built on gno.land

Resources

License

Stars

Watchers

Forks