Code Monkey home page Code Monkey logo

pontus's Introduction

pontus

MIT License

Telegram store bot. Based on the CMS Moltin. The bot will show a list of products, details of each product separately. From the selected products to form a shopping cart and place an order. Example: store of fish.

Screenshots

App Screenshot

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

  • TELEGRAM_TOKEN - token telegram bot. Get it from @BotFather.
  • TG_CHAT_ID - Telegram id administrator for system alerts. You can find out by messaging a special bot in Telegram: @userinfobot

You'll need your API keys (Client ID and Client Secret) when making requests to the API.

  • MOLTIN_CLIENT_ID - Client id of your store in cms moltin
  • MOLTIN_CLIENT_SECRET - Client secret of your store in cms moltin

Register at redis for the database address, its port and password.

  • REDIS_HOST - Redis database address Example: redis-13965.f18.us-east-4-9.wc1.cloud.redislabs.com
  • REDIS_PORT - Redis database port
  • REDIS_PASSWORD - Redis database password

Run Locally

Clone the project

  git clone https://github.com/dad-siberian/pontus.git

Go to the project directory

  cd pontus

Install dependencies

  pip install -r requirements.txt

Start the server

  pytnon bot.py

Deployment

To deploy this project run Heroku. Manual.

To set the config var on Heroku, execute the following:

heroku config:set TELEGRAM_TOKEN={telegram token}

Project Objectives

The code is written for educational purposes on an online course for web developers dvmn.org.

pontus's People

Contributors

sibeardev avatar

Stargazers

k4sp3risme avatar  avatar  avatar

Watchers

 avatar

Forkers

ken2190 sl911-x

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.