https://github.com/blockworks-foundation/mango-caps
Mango Markets offers a token ($MCAPS) that can be burned and redeemed for physical, premium swag.
https://github.com/blockworks-foundation/mango-caps
Last synced: about 1 month ago
JSON representation
Mango Markets offers a token ($MCAPS) that can be burned and redeemed for physical, premium swag.
- Host: GitHub
- URL: https://github.com/blockworks-foundation/mango-caps
- Owner: blockworks-foundation
- Created: 2021-03-21T01:09:04.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-02-23T07:18:58.000Z (3 months ago)
- Last Synced: 2025-03-28T09:11:09.148Z (about 2 months ago)
- Language: JavaScript
- Homepage: https://initialcapoffering.com
- Size: 29.6 MB
- Stars: 4
- Watchers: 7
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is the deployed version of initialcapoffering.com
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
## Getting Started
Create a local `.env` file that sets `DATABASE_URL=` with the heroku
postgres url: https://dashboard.heroku.com/apps/mango-caps/resources```bash
yarn # install dependencies
npx prisma generate # generate DB client code
yarn dev # launch dev server
npx prisma studio # launch DB admin panel
```## Setup the Token
```bash
spl-token create-token --decimals 0
# Creating token 2prC8tcVsXwVJAinhxd2zeMeWMWaVyzPoQeLKyDZRFKd
spl-token create-account 2prC8tcVsXwVJAinhxd2zeMeWMWaVyzPoQeLKyDZRFKd
spl-token mint 2prC8tcVsXwVJAinhxd2zeMeWMWaVyzPoQeLKyDZRFKd 500
spl-token authorize 2prC8tcVsXwVJAinhxd2zeMeWMWaVyzPoQeLKyDZRFKd mint --disable
```## Migrate DB
```bash
npx prisma db push --preview-feature
```