Telegram Mini App built with Next.js that allows authorized users to view a list of NFT items.
You can find the deployed service following this link.
Clone the repository, install dependencies, and copy the .env.example
contents to .env
:
~ git clone [email protected]:krau5/ton-nft-marketplace.git
~ cd ton-nft-marketplace
~ npm i
~ cp .env.example .env
To configure the .env
file, you need data from Notion and Tonconsole.
NOTION_TOKEN
field in .env
.#
) and paste it into the NOTION_NFT_TABLE_ID
field in .env
.Example Notion URL:
https://www.notion.so/user/demo-page-19ea6efae12345719034d4e310fa4964?pvs=4#19ea6efae5568056a6deec39479f3d25
Extracted NOTION_NFT_TABLE_ID
:
19ea6efae5568056a6deec39479f3d25
TON_API_KEY
field in .env
.Once environment variables are set up, you can start the application with:
~ npm run dev
The app will be available at http://localhost:3000/
.
npm run dev
- launches the application in development modenpm run build
- builds the applicationnpm start
- runs the production buildnpm run lint
- checks code quality using ESLintnpm run lint:fix
- fixes linting issues if possiblenpm run check-types
- launches type checking process using TS compiler