Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/dabit3/lens-gated-publications

Example application implementing gated Lens posts, encryption, and decryption
https://github.com/dabit3/lens-gated-publications

Last synced: 3 months ago
JSON representation

Example application implementing gated Lens posts, encryption, and decryption

Awesome Lists containing this project

README

        

## Token Gating app on Lens

This is an example project showing how to implement token gated posts on Lens, and also showing how to decrypt token gated posts on Lens.

### Project setup

To run this project follow these steps

1. Clone the project:

```sh
git clone [email protected]:dabit3/lens-token-gating.git
```

2. Install the dependencies

```sh
npm install

# or yarn, pnpm, etc...
```

3. Configure the environment variables.

Update `.example.env.local` to `.env.local` and configure the `NEXT_PUBLIC_PROJECT_ID` and `NEXT_PUBLIC_PROJECT_SECRET` with your Infura project information.

Also optionally configure the `NEXT_PUBLIC_ENVIRONMENT` with the network you'd like to connect to.

4. Run the app

```sh
npm run dev
```