Giter VIP home page Giter VIP logo

blockipedia-near's Introduction

Blockipedia-NEAR

A wikipedia on NEAR Protocol

Open in Gitpod

Visit the Blockipedia page

https://nlhkh.github.io/blockipedia-near/

How to develop locally

Backend (smart contract on NEAR rust sdk)

Prerequisites:

make build
make dev-deploy

Frontend (Gatsby React app)

Prerequisites:

All frontend resources are under ./frontend directory For local development, Gatsby expects env vars from the .env.development file Feel free to copy from .env.development.sample and make any change you need

make dev-frontend

How to run tests

Run tests against the entire suite

make test

Run test for a single unit test

make test TEST_TARGET=test_name
# where `test_name` is the name of the specific test function
# e.g. "create_article_with_insufficient_fund"

Run tests while allowing console log messages (e.g. from println! or dbg!) to show up

# run all tests
make test-verbose
# run a specific test
make test-verbose TEST_TARGET=test_name

blockipedia-near's People

Contributors

dependabot[bot] avatar khanetor avatar thesephi avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

2krd luvnft

blockipedia-near's Issues

Donate to article (frontend)

@Thesephi The NEAR wallet api (client-side) let users send tokens directly to another token, so perhaps we don't need to implement donation on the contract.

Start link

Should:

  • Sign-in if not authenticated
  • Go to write new article page if authenticated

Add landing page

  • If authenticated: show a list of articles
  • If not authenticated: show a sign-in button

Compose our story

Blockipedia is a Wikipedia living on the NEAR blockchain.

With Blockipedia, we aim to give credits to the authors and contributors of wiki articles. Readers can optionally donate to an article, and the tokens shall be distributed to the author and contributors according to a predefined ratio.

This is also an opportunity for us to learn about building application on blockchain in general.

In the future, we intend to:

  1. Utilize regular database to assist with storing large amount of data, in addition to the NEAR blockchain storage.
  2. Index the articles for full-text searching.
  3. Use regular social authentication to allow non-NEAR users to read articles.

Create frontend

  • Setup Gatsby
  • Setup NEAR client sdk
  • Link NEAR wallet
  • Deploy to GitHub Page

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.