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
Navigate to the Proof-of-Concept Directory
cd telegram-mini-app-sdk-tezos/proof-of-concept
Navigate to the backend directory
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
Navigate to the frontend directory
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
Last updated