Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dabit3/lens-gated-publications
- Owner: dabit3
- Created: 2022-12-01T01:03:52.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-06T22:38:33.000Z (almost 2 years ago)
- Last Synced: 2024-05-17T08:31:34.631Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 135 KB
- Stars: 49
- Watchers: 2
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-lens-protocol - lens-gated-publications - Example application implementing gated Lens posts, encryption, and decryption. (Learn / Examples)
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
```