Giter Site home page Giter Site logo

ethiomarketplace / emp-post-management-bot Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 217 KB

EMP Telegram bot, that users use to register their products and integrate their channels.

TypeScript 99.54% JavaScript 0.46%
jest-test mongodb telegrafjs typescript

emp-post-management-bot's Introduction

EMP Post Management Bot

Requirements:

  • Create your own Telegram bot for development purposes
  • Setup mongoDB localy

⚡️ Environmental Variables

  • BOT_TOKEN=<create your own telegram bot for development>
  • MONGO_URL=mongodb://127.0.0.1:27017/emp
    • Setup your mongo DB server locally
  • API=https://telegram-channel-scraper-api-1lfd.vercel.app

⚡️ Explanation of the main folders and files:

  • src/: This is where most of your code will reside.
  • commands/: Contains the logic for each user command or action.
  • middleware/: Middleware functions for global processing and tracking.
  • config: different configurations like mongodb, dotenv.
  • models/: Define your data models (e.g., User, Product) using TypeScript interfaces or classes.
  • services/: Business logic services that handle interactions with the database, cache, external channels, etc.
  • utils/: Utility functions used throughout the application.
  • index.ts: Entry point of your bot's application.

⚡️ Rule and Regulation of contribution:

Writing Test Cases:

  • All code changes and new features must be accompanied by comprehensive unit tests.
  • Test cases should cover different scenarios, edge cases, and expected outcomes.
  • Regularly review and update test cases as the codebase evolves.

Code and Documentation:

  • Adhere to Object-Oriented Programming (OOP) principles when designing and implementing code.
  • Follow SOLID principles to create modular, maintainable, and extensible code.
  • Use meaningful variable and function names to enhance code readability.
  • Include comments to document the purpose and functionality of functions, classes, and important code segments.

Branching and Testing:

  • Every new feature, bug fix, or enhancement should be developed on a separate branch.
  • Include a descriptive name for each branch that reflects the purpose of the changes.
  • Each branch must include relevant unit tests that validate the feature's functionality.
  • Test your code locally before creating a pull request to ensure it works as intended.

Code Review:

  • Before merging a branch into the main codebase, it must undergo a code review.
  • Code reviews help ensure code quality, consistency, and adherence to coding standards.
  • Address feedback and make necessary changes based on the code review process.

emp-post-management-bot's People

Contributors

abdetaterefe avatar abdiu34567 avatar abduselamm avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.