Skip to content

Shiyinq/anonim-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

anonim-chat

GitHub top language GitHub repo size GitHub last commit GitHub commit activity

anonim-chat-1 anonim-chat-2 anonim-chat-3

Anonymously chat with a stranger.

Table of Contents

Requirements

  • Node JS v20.10.0
  • NPM v10.2.3
  • nodemon lates
  • MongoDB v5

Development

Clone and install dependencies.

1. Clone this repository

git clone https://github.com/Shiyinq/anonim-chat.git

2. Navigate to the project directory

cd anonim-chat

3. Install dependencies

npm install

4. Create .env file

cp .env.example .env

5. Fill the BOT_TOKEN

you can get token from @BotFather

6. Run the bot script

npm run dev

7. Test your bot

  • Open Telegram and find the bot you created with @BotFather.
  • Start a conversation with your bot to ensure it's responding correctly.
  • For a more comprehensive test:
    • Use two different Telegram accounts.
    • Simulate a conversation between a user and your bot.

Deployment

Before you begin, ensure you have Docker installed.

1. Clone the repository

git clone https://github.com/Shiyinq/anonim-chat.git
cd anonim-chat

2. Create environment files

cp .env.example .env

Open .env file you have created and update the values.

3. Build and run the Docker containers

docker compose up --build -d

Wait a few minutes for the setup to complete, bot running on http://localhost:8080.