You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
KKlochko 91e3b3234f
continuous-integration/drone/push Build is passing Details
Refactor to use InformativeValidators instead of ModelValidation.
2 years ago
app Refactor to use InformativeValidators instead of ModelValidation. 2 years ago
bootstrap Project initialization. 2 years ago
config Added Dots Platform API Configuration. 2 years ago
database Add UserAddress model. 2 years ago
docker/postgres Add the docker files. 2 years ago
public Project initialization. 2 years ago
resources Project initialization. 2 years ago
routes Add the order method and its route. 2 years ago
storage Project initialization. 2 years ago
tests Refactor to use InformativeValidators instead of ModelValidation. 2 years ago
.dockerignore Add the docker files. 2 years ago
.drone.yaml Add execution seeders to the migrations in the CI/CD configuration. 2 years ago
.editorconfig Project initialization. 2 years ago
.env.example Update .env.example to have the test information. 2 years ago
.gitattributes Project initialization. 2 years ago
.gitignore Project initialization. 2 years ago
COPYING Add license. 2 years ago
Dockerfile Add the docker files. 2 years ago
README.org Fix README. 2 years ago
artisan Project initialization. 2 years ago
composer.json Add license. 2 years ago
composer.lock Updated guzzlehttp/guzzle library. 2 years ago
docker-compose.yaml Add the docker files. 2 years ago
entrypoint.sh Add the docker files. 2 years ago
package.json Project initialization. 2 years ago
phpunit.xml Project initialization. 2 years ago
vite.config.js Project initialization. 2 years ago

README.org

dots-bot-api

dots-bot-api is the application that will help to manage logic as the bot backend.

It uses Dots Platform Clients API.

Setup

  • clone this repository.
  • copy .env.example and save as .env.
  • change update the information about the database and the dots api .env: postgres is same name of the service in docker-compose.yaml. Example:

      DB_CONNECTION=pgsql
      DB_HOST=postgres
      DB_PORT=5432
      DB_DATABASE=your_database
      DB_USERNAME=another_user
      DB_PASSWORD=secure_password
    
      DOTS_BASE_URL=https://dotsdomain.test
      DOTS_API_TOKEN=your_api_token
      DOTS_API_ACCOUNT_TOKEN=your_api_account_token
      DOTS_API_AUTH_TOKEN=your_api_auth_token
  • if you change the database information in .env, then it must be changed in dots-bot-api/docker/postgres/.env.
  • run sudo docker-compose up -d in the project folder.
  • run sudo docker ps to see that dots-bot-api-nginx bind your host's port with 80.
  • Now you can setup dots-matrix-bot.

Author

Kostiantyn Klochko (c) 2023

License

Under the GNU Affero General Public License v3.0 or later.