https://github.com/codingshot/cpassport
https://github.com/codingshot/cpassport
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codingshot/cpassport
- Owner: codingshot
- License: unlicense
- Created: 2023-09-13T01:39:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-13T04:30:54.000Z (over 1 year ago)
- Last Synced: 2025-02-02T05:44:46.055Z (4 months ago)
- Language: TypeScript
- Homepage: https://cpassport.vercel.app
- Size: 4.34 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CPAssport
Creatives DAO Passport[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fcodingshot%2Fcpassport&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 ```LinktreeBOS``` and it's located at
```/src/components/polygon/index.tsx```It loads the ```cpassport.near/widget/Passport.main``` BOS component. The source can be found [here](https://near.org/near/widget/ComponentDetailsPage?src=cpassport.near/widget/Passport.Main).
## 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 cpassport .
docker run -p 3000:3000 cpassport
```