Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/frol/block-and-wine-web4-demo


https://github.com/frol/block-and-wine-web4-demo

Last synced: 12 days ago
JSON representation

Awesome Lists containing this project

README

        

Web4 Demo on NEAR protocol for Block & Wine Community
=====================================================

[Web4](https://web4.near.page) is a gateway to the smart contracts deployed to NEAR protocol.

This demo just shows [blockandwine.com](https://blockandwine.com) landing page that lives on NEAR chain, and thus anyone hosting Web4 gateway can serve it! Be it `block-and-wine.near.page` or `block-and-wine.web4` or `block-and-wine.at-frol.page` or even `block-and-wine.near.google.com`.

See it live on testnet: https://block-and-wine.testnet.page

When you deploy on mainnet, you should be able to use https://ACCOUNT_ID.near.page as your gateway.

## Build

See [near-sdk docs](https://near-sdk.io) for the prerequisites, and then build the contract:

```
$ cargo build --target wasm32-unknown-unknown --release
```

## Deploy

Using [near-cli-rs](https://near.cli.rs) you can deploy the contract to your account:

```
$ near-cli add contract-code network testnet account ACCOUNT_ID.testnet contract-file ./target/wasm32-unknown-unknown/release/block_and_wine_web4_demo.wasm no-initialize sign-with-keychain
```