Skip to content

Commit

Permalink
Rudimentary set up for ussd 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Mango Habanero committed Nov 8, 2022
1 parent f8b773e commit 2d0f180
Show file tree
Hide file tree
Showing 49 changed files with 22,375 additions and 142 deletions.
7 changes: 7 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Environment variables declared in this file are automatically made available to Prisma.
# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema

# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings

DATABASE_URL="postgresql://postgres:password@localhost:5432/cic_ussd_2?schema=public"
6 changes: 2 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@
"parserOptions": { "project": "./tsconfig.json" },
"env": { "es6": true },
"ignorePatterns": ["node_modules", "build", "coverage"],
"plugins": ["import", "eslint-comments", "functional"],
"plugins": ["import", "eslint-comments"],
"extends": [
"eslint:recommended",
"plugin:eslint-comments/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"plugin:functional/lite",
"prettier",
"prettier/@typescript-eslint"
"prettier"
],
"globals": { "BigInt": true, "console": true, "WebAssembly": true },
"rules": {
Expand Down
7 changes: 7 additions & 0 deletions .typesafe-i18n.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"baseLocale": "sw",
"adapter": "node",
"generateOnlyTypes": true,
"outputPath": "./src/i18n",
"$schema": "https://unpkg.com/[email protected]/schema/typesafe-i18n.json"
}
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cSpell.words": [
"Ussd"
]
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# cic-ussd

A ussd client implementation that interfaces the community inclusion currencies custodial system.
A ussd client implementation that interfaces with the community inclusion currencies custodial system.
20 changes: 20 additions & 0 deletions dev/httpie
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Testing with: https://reqbin.com/

[xxx-form-urlencoded]
sessionId=ATjdn5f78gkgojff9fkeknrr_8786JDnfflflm
phoneNumber=+254706533739
networkCode=Safaricom
serviceCode="*384*96#"
text=Sample

[json]
{
"ussd_code": "058",
"msg_type": "0",
"ussd_response": "Sample",
"msisdn": "677777777",
"operator": "MTN"
}

[env]
export NODE_ENV=default LOG_LEVEL=debug
Loading

0 comments on commit 2d0f180

Please sign in to comment.