The main idea consists of unidirectional data stream.
Downstream components can't use upstream ones.

TODO
First you should clone this repository:
$ git clone https://github.com/Chatyx/frontend.git
# or
$ git clone [email protected]:Chatyx/frontend.gitNext step is installing dependencies:
$ cd frontend
$ npm installCreate .env configuration file from next chapter!
And finally you can use:
# for run project on dev server:
$ npm run start
# for development build:
$ npm run dev
# for production build:
$ npm run buildFor run project you also need to create configuration file with name .env It must be placed in the root directory (near with the package.json)
SERVER_URL=http://localhost:8000
WS_URL=ws://localhost:8080
CHAT_MESSAGES_STEP=20
APP_PORT=3000If you want to regenerate code from protobuf, you can run this
protoc --plugin="./node_modules/.bin/protoc-gen-ts_proto" --ts_proto_opt=esModuleInterop=true --ts_proto_out="./src/entities/message" src/entities/message/consts/message.protoBut it is not necessary... The generated code is already in the repository