https://github.com/wpdas/nextjs-near-widget-app
Example of Near Social Widget built using SSR with NextJS
https://github.com/wpdas/nextjs-near-widget-app
Last synced: 7 days ago
JSON representation
Example of Near Social Widget built using SSR with NextJS
- Host: GitHub
- URL: https://github.com/wpdas/nextjs-near-widget-app
- Owner: wpdas
- Created: 2023-04-17T00:36:08.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-08T17:52:22.000Z (about 3 years ago)
- Last Synced: 2025-03-02T13:14:44.626Z (over 1 year ago)
- Language: TypeScript
- Size: 327 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NextJS Example Widget App
This is an application running on Near Social using the NEAR blockchain network and was built using NextJS & NEAR Social Bridge.
## Setup
Install all the dependencies:
```sh
yarn install
```
Run app:
```sh
yarn dev
```
Run viewer
```sh
yarn vm
```
Now, you can see your changes in real time. Both in React App and Widget.
## Widget
There're two Widgets:
- **NextJS.jsx:** using `mainnet`
- **NextJS.dev.jsx**: using `testnet`
## Libraries
[**NEAR Social Bridge:**](https://github.com/wpdas/near-social-bridge) A library that allows you to create a common application using ReactJS and inject it in a controlled way into a Widget on Near Social. Therefore, the Widget talks to the React application and vice versa, making it possible to consume Discovery API resources within the React application.
[**NEAR Social Local Viewer:**](https://github.com/wpdas/near-social-local-viewer) A CLI tool that allows you to run and test your Near Social Widgets locally using just your preferred code editor and your default browser.