Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.34 KB

README.md

File metadata and controls

59 lines (40 loc) · 1.34 KB

SERVER IMPLEMENTATION OF DARAJA API

  • This is an implementation of the Daraja API by Safaricom. This is a follow up of the previous implementation of the same API using Express.js. This time round, I have used Nestjs to implement the API. implement the API, adding other features offfered by Safaricom's Daraja API.
  • Typescript support is enabled in this project.

previous implementation of the same API using Express.js can be found in the branch expressjs

Installation

  • Clone the repository
git clone https://github.com/Domains18/NodeJsDaraja.git
  • Install dependencies
pnpm install
  • Create a .env file in the root directory and add the following environment variables
PORT=3000
CONSUMER_KEY=YOUR_CONSUMER_KEY
CONSUMER_SECRET=YOUR_CONSUMER_SECRET
SHORTCODE=YOUR_SHORTCODE
  • Start the server
pnpm start

CONTRIBUTING

  • Fork the repository
  • Create a new branch (feature/bug)
  • Make changes
  • Commit changes
  • Push changes to your branch
  • Create a pull request

LICENSE

AUTHOR

product of NerdsCatapult