Skip to content

dr-fusion/mantle-bos-gateway

 
 

Repository files navigation

BOS Gateway Template

This repository contains a clean, light-weight gateawy for the Blockchain Operating System (BOS). It serves as a great starting point for launching a customized BOS gateway. Contributions are most welcome!

Setup & Development

Initialize repo:

pnpm i

Start development version:

cp .env.example .env
pnpm dev

The entry component is BosMain and it's located at /src/components/index.tsx

It loads the ciocan.near/widget/hello-world BOS component. The source can be found here.

Deployment

This is a Next.js app and a fork of NEAR Discovery gateway app.

For static exports just run next build and upload the build files to your hosting provider. More info here.

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.

Running with docker

docker build -t bos-gateway-template .
docker run -p 3000:3000 bos-gateway-template

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 77.0%
  • JavaScript 17.3%
  • CSS 5.1%
  • Dockerfile 0.6%