GithubHelp home page GithubHelp logo

twoheadsnweb / check-my-biopassport-kg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from neighborstan/check-my-biopassport-kg

0.0 0.0 0.0 569 KB

A Telegram bot for checking the status of Russian biometric passport readiness when submitting documents in Kyrgyzstan.

License: Apache License 2.0

Shell 1.52% Java 97.17% Dockerfile 1.31%

check-my-biopassport-kg's Introduction

Telegram Bot GitHub

A Telegram bot for checking the status of Russian biometric passport readiness when submitting documents in Kyrgyzstan.

How it works

Enter a short application number, no more than 8 digits, or a full identification number - 25 digits.
If the application number exists, you will receive information about the current status of the passport, otherwise "Number not found."
There is a functionality for selecting the city of application submission, Bishkek and Osh.

The response includes the following information:

  • Request date
  • Application UID
  • Date of application submission
  • Main status
  • Internal status
  • Readiness

Demo

A Telegram bot for checking the status of Russian biometric passport readiness when submitting documents in Kyrgyzstan.

Direct link to the bot: https://t.me/check_biopassport_KG_bot

Deployment

Deployment process as easy as possible: Required software:

  • terminal for running bash scripts
  • docker
  • docker-compose

to deploy application, switch to needed branch and run bash script:

bash start.sh bot_username bot_token db_user db_password

Another option is to create a separate docker-compose.yaml file and directly specify all the logins and passwords in it, as well as specify which images to run.
Then run command:

docker-compose up -d

That's all.

Local development

There are several options for local deployment and testing:

Variant 1

Run command:

bash start.sh bot_username bot_token db_user db_password

Variant 2

Use docker-compose-dev.yml. Run command:

docker-compose -f docker-compose-dev.yml up

Next step, is to run Spring Boot app with configured Edit Configuration in which four env vars are provided:

bot.token=bot_token;bot.username=bot_username;spring.datasource.username=db_username;spring.datasource.password=db_password

And add VM Options:

-Dspring.profiles.active=dev

With these configurations - run Spring Boot main method.

Technological stack

  • Spring Boot as a skeleton framework
  • Postgresql database as a database for saving user info
  • Flyway database migration tool
  • Telegram-bot SpringBoot starter
  • Spring Data starter
  • Unirest - lib for working with REST calls

License

This project is Apache License 2.0 - see the LICENSE file for details

check-my-biopassport-kg's People

Contributors

neighborstan 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.