Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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`.