A solution that would simulate users and allow them to vend a network of their choice. Considering the product to be Airtime Vending with the network providers (MTN or GLO).
create a directory and move into the folder
mkdir fbis_valentine_assessment
cd fbis_valentine_assessment
clone this project
git clone https://github.com/chionye/fbis-assessment.git .
Install dependencies using npm
npm install
create a new mysql database named fbis_airtime_vendor_db
run the app
npm run dev
Test that the application works by visiting
http://localhost:2020/
POST /user/register
Parameter | Type | Description |
---|---|---|
name |
string |
Required. Your name |
email |
string |
Required. Your email |
password |
string |
Required. Your password |
POST /airtime/purchase/${id}
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of user as a param |
phone |
string |
Required. phone number of user |
network_provider |
string |
Required. Network provider of user e.g mtn, glo |
amount |
integer |
Required. airtime amount to be purchased |
- @chionye Valentine Michael