Skip to content

Commit

Permalink
main/initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
2amjsouza committed Jul 28, 2023
0 parents commit b165827
Show file tree
Hide file tree
Showing 118 changed files with 12,429 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2

[docker-compose.yml]
indent_size = 4
63 changes: 63 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost

LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=

BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DISK=local

QUEUE_CONNECTION=redis
SESSION_DRIVER=file
SESSION_LIFETIME=120

MEMCACHED_HOST=127.0.0.1

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_MAILER=smtp
MAIL_HOST=mailpit
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="[email protected]"
MAIL_FROM_NAME="${APP_NAME}"

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_HOST=
PUSHER_PORT=443
PUSHER_SCHEME=https
PUSHER_APP_CLUSTER=mt1

VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

TOKEN_TIME=120
DEFAULT_TEMPLATE=
LANGUAGE=
10 changes: 10 additions & 0 deletions .env.sail
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=mail_api
DB_USERNAME=sail
DB_PASSWORD=password

REDIS_HOST=redis
REDIS_PASSWORD=null
REDIS_PORT=6379
32 changes: 32 additions & 0 deletions .env.testing
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
APP_NAME="testing"
APP_ENV=local
APP_KEY=base64:BlN+0HtqhyxDrirgV3X7jv4YA7sdn9L39HfvGdGPzIw=
APP_DEBUG=true
APP_URL=http://localhost

LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=mail_api_test
DB_USERNAME=root
DB_PASSWORD=

BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DISK=local

QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120

MEMCACHED_HOST=127.0.0.1

REDIS_HOST=redis
REDIS_PASSWORD=null
REDIS_PORT=6379

TOKEN_TIME=60
11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
* text=auto eol=lf

*.blade.php diff=html
*.css diff=css
*.html diff=html
*.md diff=markdown
*.php diff=php

/.github export-ignore
CHANGELOG.md export-ignore
.styleci.yml export-ignore
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/.phpunit.cache
/node_modules
/public/build
/public/hot
/public/storage
/storage/*.key
/vendor
.env
.env.backup
.env.production
Homestead.json
Homestead.yaml
auth.json
npm-debug.log
yarn-error.log
/.fleet
/.idea
/.vscode
1 change: 1 addition & 0 deletions .phpunit.result.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":1,"defects":{"Tests\\Feature\\TokenTest::test_should_issue_token":5,"Tests\\Feature\\TokenTest::test_should_find_auth_by_token":7,"Tests\\Feature\\TokenTest::test_should_authenticate_token":5},"times":{"Tests\\Unit\\ExampleTest::test_that_true_is_true":0.004,"Tests\\Feature\\ExampleTest::test_the_application_returns_a_successful_response":0.028,"Tests\\Feature\\TokenTest::test_should_issue_token":0.076,"Tests\\Feature\\TokenTest::test_should_find_auth_by_token":0.027,"Tests\\Feature\\TokenTest::test_should_authenticate_token":0.044}}
132 changes: 132 additions & 0 deletions Mail API Service.postman_collection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
{
"info": {
"_postman_id": "eaffb50f-deae-4306-a8af-85b77c3d5102",
"name": "Mail API Service",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "1948434"
},
"item": [
{
"name": "Token",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "",
"type": "string"
},
{
"key": "username",
"value": "",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8000/api/token",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"token"
]
}
},
"response": []
},
{
"name": "Send Message",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "from",
"value": "[email protected]",
"type": "text"
},
{
"key": "sender",
"value": "Test user",
"type": "text"
},
{
"key": "to",
"value": "[email protected]",
"type": "text"
},
{
"key": "receiver",
"value": "Test user",
"type": "text"
},
{
"key": "subect",
"value": "testing api",
"type": "text"
},
{
"key": "attachments[]",
"type": "file",
"src": [],
"disabled": true
},
{
"key": "language",
"value": "en",
"type": "text",
"disabled": true
},
{
"key": "template",
"value": "hello-world",
"type": "text",
"disabled": true
}
]
},
"url": {
"raw": "http://localhost:8000/api/send-message",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"send-message"
]
}
},
"response": []
}
]
}
Loading

0 comments on commit b165827

Please sign in to comment.