GithubHelp home page GithubHelp logo

rezarahemtola / gnovox Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 292 KB

Decentralized Medium-like platform, built on gno.land

License: MIT License

Go 6.65% HTML 0.47% JavaScript 2.82% TypeScript 87.95% CSS 2.11%

gnovox's Introduction

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!

gnovox's People

Contributors

rezarahemtola avatar

Stargazers

 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.