Introduction:
This miniapp is built using the Telegram Mini App API and React JS. It facilitates users to connect with others and find matches based on preferences.
-Telegram Date (Sample Bot.)
Prerequisites:
Before you begin, ensure you have met the following requirements:
Installation:
-
install the Backend of the Mini App Here. There is a full installation guide there.
-
Clone the repository:
git clone https://github.com/biruknova/telegramDating.git
-
Change to the project's directory:
cd telegramDating
-
Install dependencies using npm:
npm install
-
Start the development server:
npm run start
-
Open your browser and visit http://localhost:3000 to view the app.
Configuration :
-
Set your
BASE_URL
is theconfig.js
file located in thesrc
directory:const BASE_URL = "your base url"; export default BASE_URL;
-
Save the file and restart the development server.
This miniapp is built using the Telegram Mini App API and React JS. It facilitates users to connect with others and find matches based on preferences.
- Auto Login: Users are automatically logged in.
- New Users:
- Redirected to a signup page with:
- Editable name input (autofilled).
- Age input (Minimum age 16 years).
- Gender selector buttons: "Male" and "Female".
-
- Once all fields are valid and filled, a Telegram main button will appear labeled "Continue".
- Clicking "Continue" registers the user and redirects them to the "Home" tab.
- Redirected to a signup page with:
There are three main tabs in the bottom navigation:
- Home
- Matches
- Profile
-
Users are displayed in a card layout.
- User Information Displayed:
- User Image
- Name
- Age
- Bio (if available)
- Two action buttons:
- Like: If clicked, you move on to the next user card. If there's a match, a match modal pops up.
- Dislike: If clicked, you move on to the next user card.
- User Information Displayed:
-
If there are no users left to display, a card shows up with the message:
"No one is available."
-
Match Modal:
- Header: "It's a match!"
- Displays images of both users (the user and the person they matched with).
- Two buttons:
- Profile: Opens the matched user's profile.
- Continue: Closes the match popup and moves to the next user card.
-
-
-
Displays all the people you've matched with. Which when clicked, navigates to the profile of the clicked match.
-
Matched User Profile:
-
Note: If a matched user doesn't have a username and you try to message them, a snackbar notification will appear with a message.
-
Displays the user's:
-
Edit Profile: