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

Feature/feature upgrade laravel/auth0 setup #2

Open
wants to merge 3 commits into
base: master
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
245 changes: 245 additions & 0 deletions .db/FloodRelief-20180606.sql

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
root = true

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

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_style = space
indent_size = 2
8 changes: 8 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost

LOG_CHANNEL=stack

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
Expand All @@ -15,6 +17,7 @@ DB_PASSWORD=root
BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
SESSION_LIFETIME=120
QUEUE_DRIVER=sync

REDIS_HOST=127.0.0.1
Expand All @@ -31,6 +34,10 @@ MAIL_ENCRYPTION=null
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1

MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

INVISIBLE_RECAPTCHA_SITEKEY=6LfdQSMUAAAAAOP31dkmdZJeNvDghlBfqJsHT5M-
INVISIBLE_RECAPTCHA_SECRETKEY=6LfdQSMUAAAAAAT5cKXa7lI3koiFy4c5BP7BX3m8
Expand All @@ -39,3 +46,4 @@ NOCAPTCHA_SECRET=6LfdQSMUAAAAAAT5cKXa7lI3koiFy4c5BP7BX3m8
NOCAPTCHA_SITEKEY=6LfdQSMUAAAAAOP31dkmdZJeNvDghlBfqJsHT5M-

DISQUS_KEY=reliefsupports-org

5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* text=auto
*.css linguist-vendored
*.scss linguist-vendored
*.js linguist-vendored
CHANGELOG.md export-ignore
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
/storage/*.key
/vendor
/.idea
/.vscode
/.vagrant
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
.env
storage/
composer.lock
21 changes: 0 additions & 21 deletions .htaccess

This file was deleted.

240 changes: 240 additions & 0 deletions .postman/api.postman_collection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,240 @@
{
"variables": [],
"info": {
"name": "Relief Support Postman",
"_postman_id": "1de619cc-6e97-884e-80c7-174978769ceb",
"description": "",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
"name": "RequestToken",
"request": {
"url": "http://localhost:8000/oauth/token",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded",
"description": ""
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "grant_type",
"value": "password",
"description": "",
"type": "text"
},
{
"key": "client_id",
"value": "2",
"description": "",
"type": "text"
},
{
"key": "client_secret",
"value": "WxhI4u6XylGpHiuk8badPLpVe0lvO4DufZi4fdND",
"description": "",
"type": "text"
},
{
"key": "username",
"value": "[email protected]",
"description": "",
"type": "text"
},
{
"key": "password",
"value": "zaq1@WSXCDE#",
"description": "",
"type": "text"
}
]
},
"description": ""
},
"response": []
},
{
"name": "getNeeds",
"request": {
"url": "http://localhost:8000/api/v1/entry/needs",
"method": "GET",
"header": [
{
"key": "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cQiPt-q4eVxOB-Lbo",
"description": ""
}
],
"body": {},
"description": ""
},
"response": []
},
{
"name": "getDonations",
"request": {
"url": "http://localhost:8000/api/v1/entry/donations",
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6Ijg5MjNmMjlkYmUyZWEzY2UzOTZiMDQ2YWQ3MDM5YmM5NGM4YzYzODdhNjE1ODJjYmZkNmZkODE4MmQwNzYwZjg0YTY5NzAzMjgwMTk5MmU2In0.eyJhdWQiOiIyIiwianRpIjoiODkyM2YyOWRiZTJlYTNjZTM5NmIwNDZhZDcwMzliYzk0YzhjNjM4N2E2MTU4MmNiZmQ2ZmQ4MTgyZDA3NjBmODRhNjk3MDMyODAxOTkyZTYiLCJpYXQiOjE1MjgyNzEzNDAsIm5iZiI6MTUyODI3MTM0MCwiZXhwIjoxNTU5ODA3MzQwLCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.P4HuuHCec_tkH1lkTXesvaSdsNDFDDz3iWM0JvWUZnRljPgSojMBEdS9i71VFefXin4mUoAwiEc_3nSvoHsxrCy0ihxyUD7HVlgwWzKewn4JVCS2kZCOivzj4z10bhUaEXZo0zRugruWt1Suxd7CurtCnwfzCH3ISdAcJajpSoJRrGKqNlLFN9VDPNAOrgzbG2C2Ribk6I6ZSuAmkVHddXu3Q0jmUvQLW__cISQ9n4b_QZkgsl9cdnZUrwIeDm_lqiYgo1R6F13gC0F-guQC2gdTx9eUcQhDrF-33N2lpnACcsqGH8PmlkEy_fdRKMwG-CLyrysRZS5VrEHMTQf6n9KukeUxG-POfNsh7gM7ZHYd57y82RzF5P6U5l-759A0Qcp7rF-okqVsUFX8VH19ZYr1Yc0jxQAg1vh2psmnyeHi_o0lJjkevM9nAefkgIoi9eHm56U1_gMQSmZr60z5ZaPtstZEWZIkYPHwbhRxDlpISzAT5HeOSmN1SLSyWYu825L_3lDn1guTuXdjkTIHhE2kxHVoj7kninoy71yPISMjPKMpMfPXKFh2Kf7jIm3FLRi7Ff_HnhpLTzlsZzn8f6JWGmuZ5rRQJs9HN6swk8-bIHpZRnLA9dCqUVholZr5yrsE73_Jgq7YNJL-QvEoxv91jXcQiPt-q4eVxOB-Lbo",
"description": ""
}
],
"body": {},
"description": ""
},
"response": []
},
{
"name": "insertNeed",
"request": {
"url": "http://localhost:8000/api/v1/entry/needs",
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6Ijg5MjNmMjlkYmUyZWEzY2UzOTZiMDQ2YWQ3MDM5YmM5NGM4YzYzODdhNjE1ODJjYmZkNmZkODE4MmQwNzYwZjg0YTY5NzAzMjgwMTk5MmU2In0.eyJhdWQiOiIyIiwianRpIjoiODkyM2YyOWRiZTJlYTNjZTM5NmIwNDZhZDcwMzliYzk0YzhjNjM4N2E2MTU4MmNiZmQ2ZmQ4MTgyZDA3NjBmODRhNjk3MDMyODAxOTkyZTYiLCJpYXQiOjE1MjgyNzEzNDAsIm5iZiI6MTUyODI3MTM0MCwiZXhwIjoxNTU5ODA3MzQwLCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.P4HuuHCec_tkH1lkTXesvaSdsNDFDDz3iWM0JvWUZnRljPgSojMBEdS9i71VFefXin4mUoAwiEc_3nSvoHsxrCy0ihxyUD7HVlgwWzKewn4JVCS2kZCOivzj4z10bhUaEXZo0zRugruWt1Suxd7CurtCnwfzCH3ISdAcJajpSoJRrGKqNlLFN9VDPNAOrgzbG2C2Ribk6I6ZSuAmkVHddXu3Q0jmUvQLW__cISQ9n4b_QZkgsl9cdnZUrwIeDm_lqiYgo1R6F13gC0F-guQC2gdTx9eUcQhDrF-33N2lpnACcsqGH8PmlkEy_fdRKMwG-CLyrysRZS5VrEHMTQf6n9KukeUxG-POfNsh7gM7ZHYd57y82RzF5P6U5l-759A0Qcp7rF-okqVsUFX8VH19ZYr1Yc0jxQAg1vh2psmnyeHi_o0lJjkevM9nAefkgIoi9eHm56U1_gMQSmZr60z5ZaPtstZEWZIkYPHwbhRxDlpISzAT5HeOSmN1SLSyWYu825L_3lDn1guTuXdjkTIHhE2kxHVoj7kninoy71yPISMjPKMpMfPXKFh2Kf7jIm3FLRi7Ff_HnhpLTzlsZzn8f6JWGmuZ5rRQJs9HN6swk8-bIHpZRnLA9dCqUVholZr5yrsE73_Jgq7YNJL-QvEoxv91jXcQiPt-q4eVxOB-Lbo",
"description": ""
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "name",
"value": "Siripala",
"description": "",
"type": "text"
},
{
"key": "telephone",
"value": "0712346666",
"description": "",
"type": "text"
},
{
"key": "address",
"value": "No. 5/2 Galle Road, Kaluthara",
"description": "",
"type": "text"
},
{
"key": "city",
"value": "Kaluthara",
"description": "",
"type": "text"
},
{
"key": "needs",
"value": "Test Need",
"description": "",
"type": "text"
},
{
"key": "heads",
"value": "2",
"description": "",
"type": "text"
},
{
"key": "source",
"value": "mobile",
"description": "mobile or fbbot",
"type": "text"
},
{
"key": "status",
"value": "1",
"description": "",
"type": "text"
},
{
"key": "geolocation",
"value": "38.8951 -77.0364",
"description": "latitude and longitude",
"type": "text"
}
]
},
"description": ""
},
"response": []
},
{
"name": "insertDonation",
"request": {
"url": "http://localhost:8000/api/v1/entry/donations",
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6Ijg5MjNmMjlkYmUyZWEzY2UzOTZiMDQ2YWQ3MDM5YmM5NGM4YzYzODdhNjE1ODJjYmZkNmZkODE4MmQwNzYwZjg0YTY5NzAzMjgwMTk5MmU2In0.eyJhdWQiOiIyIiwianRpIjoiODkyM2YyOWRiZTJlYTNjZTM5NmIwNDZhZDcwMzliYzk0YzhjNjM4N2E2MTU4MmNiZmQ2ZmQ4MTgyZDA3NjBmODRhNjk3MDMyODAxOTkyZTYiLCJpYXQiOjE1MjgyNzEzNDAsIm5iZiI6MTUyODI3MTM0MCwiZXhwIjoxNTU5ODA3MzQwLCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.P4HuuHCec_tkH1lkTXesvaSdsNDFDDz3iWM0JvWUZnRljPgSojMBEdS9i71VFefXin4mUoAwiEc_3nSvoHsxrCy0ihxyUD7HVlgwWzKewn4JVCS2kZCOivzj4z10bhUaEXZo0zRugruWt1Suxd7CurtCnwfzCH3ISdAcJajpSoJRrGKqNlLFN9VDPNAOrgzbG2C2Ribk6I6ZSuAmkVHddXu3Q0jmUvQLW__cISQ9n4b_QZkgsl9cdnZUrwIeDm_lqiYgo1R6F13gC0F-guQC2gdTx9eUcQhDrF-33N2lpnACcsqGH8PmlkEy_fdRKMwG-CLyrysRZS5VrEHMTQf6n9KukeUxG-POfNsh7gM7ZHYd57y82RzF5P6U5l-759A0Qcp7rF-okqVsUFX8VH19ZYr1Yc0jxQAg1vh2psmnyeHi_o0lJjkevM9nAefkgIoi9eHm56U1_gMQSmZr60z5ZaPtstZEWZIkYPHwbhRxDlpISzAT5HeOSmN1SLSyWYu825L_3lDn1guTuXdjkTIHhE2kxHVoj7kninoy71yPISMjPKMpMfPXKFh2Kf7jIm3FLRi7Ff_HnhpLTzlsZzn8f6JWGmuZ5rRQJs9HN6swk8-bIHpZRnLA9dCqUVholZr5yrsE73_Jgq7YNJL-QvEoxv91jXcQiPt-q4eVxOB-Lbo",
"description": ""
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "name",
"value": "Siripala",
"description": "",
"type": "text"
},
{
"key": "telephone",
"value": "0712346666",
"description": "",
"type": "text"
},
{
"key": "address",
"value": "No. 5/2 Galle Road, Kaluthara",
"description": "",
"type": "text"
},
{
"key": "city",
"value": "Kaluthara",
"description": "",
"type": "text"
},
{
"key": "donation",
"value": "Water bottles",
"description": "",
"type": "text"
},
{
"key": "information",
"value": "This water bottles are being distributed to Rathnapura area",
"description": "",
"type": "text"
},
{
"key": "source",
"value": "mobile",
"description": "mobile or fbbot",
"type": "text"
},
{
"key": "status",
"value": "1",
"description": "",
"type": "text"
}
]
},
"description": ""
},
"response": []
}
]
}
4 changes: 3 additions & 1 deletion app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ protected function schedule(Schedule $schedule)
}

/**
* Register the Closure based commands for the application.
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');

require base_path('routes/console.php');
}
}
Loading