Skip to content

LuigiImVector/freeprogrammingbooks-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Free programming books: Telegram bot

License: CC BY 4.0

Description

Un-official Telegram bot of free-programming-books.

TELEGRAM

Contributing

Self-hosting

  1. Fork this repository

  2.  $ git clone https://github.com/YourUsername/freeprogrammingbooks-bot.git
     $ cd freeprogrammingbooks-bot
     $ git remote add upstream https://github.com/LuigiImVector/freeprogrammingbooks-bot.git
     $ git fetch upstream
     $ git checkout -b newLocalBranchName upstream/main
  3. Deploy app using Heroku

  4.  $ npm install -g heroku
     $ heroku login
     $ heroku pg:psql --app app-name < test/database.sql
     $ pip install -r requirements.txt
  5. Setup autodeploy from github using newLocalBranchName

  6.  # After some changes
     $ git push -u origin newOriginBranchName
  7. Open https://app-name.herokuapp.com/ if the bot doesn't start (mainly the first time)

If you want to test the app locally before committing, read Heroku documentation.

Improve code

Create a Pull Request detailing the changes made.