Giter Site home page Giter Site logo

simonneutert / ruby-telegram-login-web-stub-tutorial Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 1.0 6 KB

demo ruby project with roda framework providing a working telegram login process

Shell 2.71% Dockerfile 5.77% Ruby 40.12% HTML 51.40%
ruby telegram telegram-bot-api telegram-api telegram-loing roda webapp tutorial demo ajax

ruby-telegram-login-web-stub-tutorial's Introduction

Telegram Login Ruby Roda Demo

please, read the official telegram login article
at https://core.telegram.org/widgets/login (at least skim it!)

Requirements

  • Ruby >= 2.7
  • Docker
  • Ngrok

People using Docker see their own paragraph below.

Ngrok Development Server

have ngrok installed and start a server by $ ngrok http -p 5555 and copy the https url you are given

  • see what .env.example ships with and create a .env (copy of .env.example) edit with your credentials
  • go, see @BotFather on telegram
  • send him the command /setdomain
  • choose your desired bot (you should have a bot already)
  • and set to the domain you copied from ngrok (https://....ngrok.io)

Run the app

run it local using Ruby or with Docker

Get going with local Ruby

  • clone this repo
  • $ bundle install.
  • open another terminal window and run rackup -p 5555
  • open your browser at the given ngrok https:// domain

clap your hands and login with telegram!
B-)

Docker

  • $ docker build . -t ruby-telegram-login
  • $ docker run -it --rm -p5555:5555 ruby-telegram-login
  • open your browser at the given ngrok https:// domain

if you messed up a step above, simply build again, then run again, again, again

ruby-telegram-login-web-stub-tutorial's People

Contributors

simonneutert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

brimq

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.