Skip to content

telegram-ru/ru-bot

Repository files navigation

ru_bot

codecov

Installation

For better development conditions, you need to install docker and docker-compose

Also, we advise you to install all devdependencies locally (linters, etc):

npm install

Don't forget to create .env (from .env.example) and src/.chatlist.json (from src/.chalist.example.json).

When you made all steps above, run

docker-compose pull
docker-compose up -d postgres
docker-compose up --build app

Your application will automatically restart with nodemon after code changes (in src directory).

Create commits through commitizen:

npm install --global commitizen

# commit
git cz

Use next commands to manipulate db schema:

# To run all migrations
npm run migrate

# To rollback latest migration
npm run rollback