Skip to content

Latest commit

 

History

History
57 lines (44 loc) · 1.87 KB

README.md

File metadata and controls

57 lines (44 loc) · 1.87 KB

Vue telegram.

Demo. Make sure you have created telegram app client here.

Technologies/frameworks used:

  1. Vue JS framework.
  2. Vue Cli Command line tools v4.
  3. Vuex State management library.
  4. MTProto Telegram Messenger protocol.
  5. Yarn Package manager.
  6. ESLint Linting.

The instructions below will help you set up the development environment.

Project setup Environment

  1. First you need to obtain API id for telegram:

    • Sign up for Telegram using any application.
    • Log in to your Telegram core: https://my.telegram.org.
    • Go to 'API development tools' and fill out the form.
    • You will get basic addresses as well as the api_id and api_hash parameters required for user authorization.
    • For the moment each number can only have one api_id connected to it.
  2. Make sure you have Vue CLI 4 installed, you can install it by going to Vue website

  3. Clone the repository git clone https://github.com/evankazadaiev/vue-telegram.git

  4. cd vue-telegram

  5. Create a .env file in the project root and set your API_ID and API_HASH there as below:

    • VUE_APP_API_HASH= YOUR API_HASH HERE
    • VUE_APP_API_ID= YOUR API_ID HERE
  6. yarn install to install the dependencies.

  7. yarn serve to compile and hot-reload for development.

  8. Visit http://localhost:8080/ and start developing.

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Lints and fixes files

yarn lint

Customize configuration

See Configuration Reference.