Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zmovane/aptos-nft-marketplace
A full stack demo NFT marketplace based on aptos devnet.
https://github.com/zmovane/aptos-nft-marketplace
aptos aptos-move aptos-nft aptos-nft-market aptos-nft-marketplace aptos-wallet nft nft-marketplace
Last synced: 4 days ago
JSON representation
A full stack demo NFT marketplace based on aptos devnet.
- Host: GitHub
- URL: https://github.com/zmovane/aptos-nft-marketplace
- Owner: zmovane
- Created: 2022-09-09T07:24:49.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-19T07:38:23.000Z (4 months ago)
- Last Synced: 2024-07-19T15:40:17.384Z (4 months ago)
- Topics: aptos, aptos-move, aptos-nft, aptos-nft-market, aptos-nft-marketplace, aptos-wallet, nft, nft-marketplace
- Language: CSS
- Homepage: 1200-dollars-per-hour.vercel.app
- Size: 438 KB
- Stars: 64
- Watchers: 2
- Forks: 52
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Demo NFT marketplace
A full stack demo NFT marketplace based on aptos devnet. Aiming for clean and cocise code that is easy to understand and also make some automations to speed up full stack development.
## Tech stack
- Lang: Move, Typescript
- Frontend: [Next.js](https://nextjs.org/), [tailwindcss](https://tailwindcss.com), [daisyui](https://daisyui.com)
- Backend: [Supabase](https://supabase.com), [Prisma](https://prisma.io), [Rxjs](https://rxjs.dev/)## Development
### Contract
- Compile move module
```
yarn workspace market-contracts move:compile
NAME= ADDRESS=
```- Publish move module
```
yarn workspace market-contracts move:publish
NAME= ADDRESS=
```### Frontend
- Installation
```
yarn workspace market-frontend install
```- Config `.env.development.local`
In order to expose a variable to the browser you have to prefix the variable with `NEXT_PUBLIC_`
```
NEXT_PUBLIC_NFT_STORAGE_KEY=
NEXT_PUBLIC_WALLET_PRIVATE_KEY=
NEXT_PUBLIC_MARKET_ADDRESS=0x64f236ab7ba803a8921c16fa2b9995da51033e3ed2e284e358f0d5431a39c0d0
NEXT_PUBLIC_MARKET_NAME=_1200_dollars_per_hour
NEXT_PUBLIC_MARKET_FEE_NUMERATOR=10
NEXT_PUBLIC_MARKET_INITIAL_FUND=10000
NEXT_PUBLIC_MARKET_COIN_TYPE=0x1::aptos_coin::AptosCoin
NEXT_PUBLIC_APTOS_NODE_URL=https://fullnode.devnet.aptoslabs.com/v1/
NEXT_PUBLIC_APTOS_FAUCET_URL=https://faucet.devnet.aptoslabs.com/v1/
NEXT_PUBLIC_SUPABASE_KEY=
NEXT_PUBLIC_SUPABASE_URL=
```Read more on [https://nextjs.org/docs/basic-features/environment-variables](https://nextjs.org/docs/basic-features/environment-variables)
- Run script for create market
```
NODE_ENV=development yarn workspace market-frontend aptos:create-market
```- Run dev
```
yarn workspace market-frontend dev
```### Backend
- Setup
```
// install all the dependencies listed within package.json
yarn workspace market-backend install// set up a new Prisma project
yarn workspace market-backend prisma init
```- Config `.env`
```
DATABASE_URL=
APTOS_NODE_URL=https://fullnode.devnet.aptoslabs.com/v1/
APTOS_FAUCET_URL=https://faucet.devnet.aptoslabs.com/
MARKET_ADDRESS=
```- DB Migration
```
// create migrations from your Prisma schema, apply them to the database
yarn workspace market-backend prisma migrate dev --name
```- Run
```
yarn workspace market-backend start
```