Skip to content

A clean architecture implementation using the repository pattern for a Golang Telegram bot

License

Notifications You must be signed in to change notification settings

barahouei/clean-architecture-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clean-architecture-telegram-bot

A sample project for creating telegram bots in Golang with clean architecture and repository pattern.

Note

Although this is a telegram bot, clean architecture principles are the same for any types of web applications.

Directory Explanation:

/cmd

Main functionality for the application.

/configs

Application's Configurations.

/handlers

Handling all incoming requests.

This directory is responsible for defining endpoints to receive requests, and validating those incoming requests.

It contains no business logic and just passes validated requests to the appropriate services and returns the response to the client.

/logs

Where all logs are saved.

/models

Entities that are essential to the application, like structs and types.

/pkg

Libraries or functions that help to maintain and improve the application.

/repositories

Databases and their functionalities.

/services

Services that application provides.

This is where core business logic exists, it works as a bridge between handlers and repositories directories.

About

A clean architecture implementation using the repository pattern for a Golang Telegram bot

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages