- Vue JS framework.
- Vue Cli Command line tools v4.
- Vuex State management library.
- MTProto Telegram Messenger protocol.
- Yarn Package manager.
- ESLint Linting.
The instructions below will help you set up the development environment.
-
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.
-
Make sure you have Vue CLI 4 installed, you can install it by going to Vue website
-
Clone the repository
git clone https://github.com/evankazadaiev/vue-telegram.git
-
cd vue-telegram
-
Create a .env file in the project root and set your
API_ID
andAPI_HASH
there as below:VUE_APP_API_HASH= YOUR API_HASH HERE
VUE_APP_API_ID= YOUR API_ID HERE
-
yarn install
to install the dependencies. -
yarn serve
to compile and hot-reload for development. -
Visit
http://localhost:8080/
and start developing.
yarn install
yarn serve
yarn build
yarn lint