How to Deploy

The Proof of Concept clicker game has been developed using Next.js and Node.js with Express.js, ensuring a smooth and scalable architecture. Both the frontend and backend utilize TypeScript for strong type checking and improved developer experience, and React powers the frontend for building dynamic and interactive user interfaces.

Prerequisites

To get started with development, make sure the following are installed:

  • Node.js (v14 or later)

  • npm

  • MongoDB

  • Git (for cloning the repository)

Clone the Repository

git clone https://github.com/softstack/telegram-mini-app-sdk-tezos.git
cd telegram-mini-app-sdk-tezos/proof-of-concept
cd proofofconcept-backend

Install Dependencies

npm install

Configure Environment Variables

  • Create a .env file and define MONGO_URI like:

MONGO_URI = "YOUR_MONOGODB_CONNECTION_STRING"
NEXT_PUBLIC_BRIDGE_URL="https://tconnect.io"
NEXT_PUBLIC_TCONNECT_API_KEY="PRIVATE_API_KEY"

Run the backend-server

npm start

cd proofofconcept-frontend

Install Dependencies

npm install

Configure Enviroment Variables

  • create .env file and define NEXT_PUBLIC_API_BASE_URL (eg. domain.com/api/v1/)

NEXT_PUBLIC_API_BASE_URL = "YOUR_API_BASE_URL_STRING"

Run the frontend-server in dev mode

npm run dev

The sample app has been developed as a Telegram Mini App. To fully utilize the application, it must be run within the Telegram environment. Some features are limited when used outside of Telegram. For more information on how to host as Telegram Mini App see: https://github.com/softstack/telegram-mini-app

Last updated