Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D palm/hw19 #1171

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
SMTP_HOST=smtp.gmail.com
[email protected]
SMTP_PASSWORD="dkwg yyau quvc ldek"
SMTP_PORT=465
SMTP_DEBUG_MODE=2

RABBITMQ_HOST=rabbit-mq
RABBITMQ_PORT=5672
RABBITMQ_USER=user
RABBITMQ_PASSWORD=password

DB_HOST=postgres
DB_NAME=your_db
DB_USER=your_username
DB_PASSWORD=your_password

TELEGRAM_BOT_TOKEN=6728633417:AAFwSVSsaG9RZCEPiy5EREQSvZI1pg-QO0M
TELEGRAM_CHAT_ID=350843460

CHAT_ID=350843460

[email protected]
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.env
/vendor/
.idea
.DS_Store
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# PHP_2023
## Getting Started

https://otus.ru/lessons/razrabotchik-php/?utm_source=github&utm_medium=free&utm_campaign=otus
To launch the project, simply run the following command in your terminal:

```bash
sh script.sh
```

This command will set up the environment, including the necessary containers, and execute any initial setup scripts. Once the setup is complete, the project will be accessible through the hostname `application.local`.

Ensure your system's hosts file is configured to redirect `application.local` to the appropriate IP address, typically `127.0.0.1` for local development environments.
20 changes: 20 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "rabbit/daniel",
"type": "project",
"autoload": {
"psr-4": {
"Rabbit\\Daniel\\": "src/"
}
},
"authors": [
{
"name": "Daniel"
}
],
"require": {
"php-amqplib/php-amqplib": "^3.2",
"irazasyed/telegram-bot-sdk": "^3.14",
"phpmailer/phpmailer": "^6.9",
"vlucas/phpdotenv": "^5.6"
}
}
Loading
Loading