Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vgrichina/web4-littlelink
Self-hosted Linktree alternative to use with web4
https://github.com/vgrichina/web4-littlelink
assemblyscript nearprotocol web3 web4
Last synced: 9 days ago
JSON representation
Self-hosted Linktree alternative to use with web4
- Host: GitHub
- URL: https://github.com/vgrichina/web4-littlelink
- Owner: vgrichina
- Created: 2022-07-28T08:42:43.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-17T23:07:52.000Z (almost 2 years ago)
- Last Synced: 2025-01-06T02:41:44.148Z (29 days ago)
- Topics: assemblyscript, nearprotocol, web3, web4
- Language: CSS
- Homepage: https://vlad.near.page
- Size: 575 KB
- Stars: 10
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.littlelink.md
Awesome Lists containing this project
README
# web4-littlelink
Self-hosted Linktree alternative to use with [web4](https://web4.near.page).
## Why?
Get your own homepage tied to your `.near` account.
For example I have [vlad.near.page](https://vlad.near.page) which is tied to `web4.vlad.near` account.
## How
### Clone this project locally
```bash
git clone https://github.com/vgrichina/web4-littlelink.git
cd web4-littlelink
```### Install dependencies
```bash
yarn
```### Create web4 subaccount
```bash
NODE_ENV=mainnet near create-account web4.target-account.near --masterAccount target-account.near --initialBalance 0.5
```### Deploy smart contract
```bash
NODE_ENV=mainnet CONTRACT_NAME=web4.target-account.near yarn deploy
```### Deploy static files to IPFS
```bash
NODE_ENV=mainnet CONTRACT_NAME=web4.target-account.near yarn deploy:website
```### Setup links and info
```bash
NODE_ENV=mainnet near call web4.target-account.near setConfig \
'{"config":{"name":"Vlad Grichina","bio":"web4 hacker", "links":[ \
{"type":"twitter","text":"Twitter","href":"https://twitter.com/vgrichina"}, \
{"type":"github","text":"GitHub","href":"https://github.com/vgrichina"} \
]}}' --accountId web4.target-account.near
```## Attribution
Based on [LittleLink](https://littlelink.io). See `LICENSE.littlelink.md`.