Welcome to the TONFT | NFT Bazaar backend GitHub repository! This repository contains the backend code for the first NFT bazaar on TON.
Before running the backend, make sure to have the following installed:
- Node.js
- Yarn package manager
- PostgreSQL
- Docker
To run the backend, follow these steps:
- Clone this repository
git clone git@github.com:tonft-app/backend.git
; - In the project directory, create a
.env
file with the necessary environment variables. See.env.example
for an example; - Install dependencies by running
yarn install
; - Start the PostgreSQL container by running
yarn run start:postgres
; - Run the server by running
yarn run start
.
The server should now be up and running at http://localhost:3000.
The project consists of three parts:
Server interacts with the front-end and blockchain.
This server sends at most 250 transactions at the same time.
Server performs referral bonus distribution.
Telegram bot that notifies users about new offers and sales of NFTs.
Backend is written in two languages: TypeScript
and Go
.
Pull requests and suggestions are welcome on @qpwedev telegram.
Thank you for using TONFT | NFT Bazaar!