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

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

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.