Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/frol/block-and-wine-web4-demo
- Owner: frol
- Created: 2022-06-22T12:48:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-22T12:52:27.000Z (over 2 years ago)
- Last Synced: 2024-10-10T20:22:32.863Z (about 1 month ago)
- Language: HTML
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```