- 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
- 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
- The server will be running on http://localhost:3000
- Fork the repository
- Create a new branch (feature/bug)
- Make changes
- Commit changes
- Push changes to your branch
- Create a pull request
- MIT License
- LICENSE
- Gibson Kemboi