NodeJsDaraja

screenshot of NodeJsDaraja
nestjs
prisma

This project is a server-side implementation of the Daraja API by Safaricom, built using NestJS. The Daraja API allows developers to integrate M-Pesa payment services into their applications. This implementation provides a robust and scalable solution for handling M-Pesa transactions, including S...

Overview

The implementation of the Daraja API by Safaricom using NestJS is an exciting advancement, especially for developers looking to enhance their application integrations with mobile payment solutions in Kenya. This server implementation builds on a previous version that utilized Express.js, offering a more robust and structured approach to handling API requests in a scalable manner. With TypeScript support, this project promises improved developer experience and code quality.

The setup process is straightforward, making it accessible for those who are familiar with backend development. As a product of NerdsCatapult, this implementation encourages collaboration and contributes to the growing ecosystem of open-source tools for payment processing in the region.

Features

  • NestJS Framework: Utilizes NestJS for a modular and scalable architecture, enhancing maintainability and readability of the codebase.
  • TypeScript Support: Enables strong typing, which minimizes bugs and improves code quality through better tooling and autocomplete features.
  • Environment Configuration: Simple setup with a .env file for easy management of environment variables essential for API functionality.
  • Local Development: Easily run the server on http://localhost:3000, allowing for quick testing and debugging during the development process.
  • Contribution Friendly: Clear guidelines for contributors, making it easy to fork, modify, and submit pull requests for enhancements or bug fixes.
  • Open Source License: Distributed under the MIT License, promoting freedom to use, modify, and share the software.
nestjs
Nest

A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript.

prisma
Prisma

Prisma is a server-side library that helps developers read and write data to the database in an intuitive, efficient and safe way.

fullstack
Fullstack

A fullstack boilerplate provides a starter application that includes both frontend and backend. It should include database, auth, payments, user roles and other backend services to build a fully featured saas or webapps.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.