https://github.com/codingshot/edge-ai-gateway
https://github.com/codingshot/edge-ai-gateway
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/codingshot/edge-ai-gateway
- Owner: codingshot
- License: unlicense
- Created: 2023-08-16T17:55:27.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-16T23:49:31.000Z (almost 3 years ago)
- Last Synced: 2025-02-02T05:45:01.758Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://edge-ai-gateway.vercel.app
- Size: 3.6 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Edge AI Gateway
This is the Edge Intelligence Summit Gateway
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fcodingshot%2Flinktree-bos&build-command=pnpm%20run%20build&env=NEXT_PUBLIC_NETWORK_ID,NEXT_PUBLIC_HOSTNAME,NEXT_PUBLIC_ACCOUNT_ID,NEXT_PUBLIC_THEME&envDescription=mainnet-near.org-themecanbeanything&envLink=https%3A%2F%2Fgithub.com%2Fcodingshot%2Flinktree-bos%2Fblob%2Fmain%2F.env.example)
To setup a custom domain on vercel
https://vercel.com/docs/concepts/projects/domains/add-a-domain
## Setup & Development
Initialize repo:
```bash
pnpm i
```
Start development version:
```bash
cp .env.example .env
pnpm dev
```
The entry component is ```Edge.Views.Home``` and it's located at
```/src/components/polygon/index.tsx```
It loads the ```edgeai.near/widget/Edge.Views.Home``` BOS component. The source can be found [here](https://near.org/near/widget/ComponentDetailsPage?src=edgeai.near/widget/Edge.Views.Home&tab=source).
## Deployment
This is a [Next.js](https://github.com/vercel/next.js/) app and a fork of [NEAR Discovery](https://github.com/near/near-discovery) gateway app.
For static exports just run ```next build``` and upload the build files to your hosting provider. More info [here](https://nextjs.org/docs/pages/building-your-application/deploying/static-exports).
For Vercel, Cloudflare or others that supports a Next app just connect the repo and follow the deploy steps from the dashboards.
More info on Next.js deployments [here](https://nextjs.org/docs/pages/building-your-application/deploying/static-exports).
## Running with docker
```bash
docker build -t linktree-bos .
docker run -p 3000:3000 linktree-bos
```