Skip to content
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
42 changes: 42 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost

LOG_CHANNEL=stack

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret

BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
SESSION_LIFETIME=120
QUEUE_DRIVER=sync

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
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}"

ATKEY=
ACCOUNT=
5 changes: 4 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Auto detect text files and perform LF normalization
* text=auto
*.css linguist-vendored
*.scss linguist-vendored
*.js linguist-vendored
CHANGELOG.md export-ignore
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/node_modules
/public/hot
/public/storage
/storage/*.key
/vendor
/.idea
/.vscode
/.vagrant
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
.env
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# USSD Code Challenge: SwahiliPot Developer Community
## Due: 30th July,2018 or Earlier
#### This code challenge is due on the 30th of July,2018 or earlier.
#### This code challenge is due on the 30th of July,2018 or earlier.

## Simple Unchanging Rules
The code challenge is and will always be judged using the following criteria
Expand Down Expand Up @@ -34,7 +34,7 @@ In this code challenge you will be required to make a USSD application that impl

### Task Workflow:
1. User initiates USSD code
2. User selects from the menu which should contain
2. User selects from the menu which should contain
1. Mobile checkout
2. Send airtime option
3. If the user selects the mobile checkout, they should be able to pay via MPESA
Expand Down Expand Up @@ -65,4 +65,20 @@ Please read the overview for all code challenges [here.](http://atdevoutreach.vi
## Get Support on the Africa's Talking Slack
In case you have any questions, join our Slack [here](https://slackin-africastalking.now.sh/)

## Laravel Codebase.

1. Clone the project.
2. Cd to project.
3. Run composer require.
4. cp .env.example .env
5. Run `php artisan key:generate`
6. Set the username and key on .env for AT.
6. Run ` php artisan serve `
7. If you have ngrok . Run ` ngrok http 8000 `
8. Go to AfricasTalking and set the genarated ngrok url callback when creating a USSD code.
9. Use the simulator on AT to test the sample.

# Points to Note.
On AT if you invoke two sessionid one will be queued on their side. So for mpesa checkout option its invoked but queued on their side.


Loading