Coder Social home page Coder Social logo

markswell-crypto / kiswahili-past-papers-mpesa-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from isaac-kiplangat/mpesa-api

1.0 0.0 0.0 1.35 MB

mpesa api test done using nodejs backend and react vite &tailwind css frontend

JavaScript 92.97% CSS 0.97% HTML 6.05%

kiswahili-past-papers-mpesa-api's Introduction

M-Pesa API Integration

Overview

This repository contains a simple implementation of an M-Pesa API integration using Node.js for the backend and React with Vite for the frontend. This integration allows you to seamlessly integrate M-Pesa payment functionality into your web application.

Prerequisites

Before you begin, ensure you have the following prerequisites installed on your machine:

Getting Started

  1. Clone the repository:

    git clone https://github.com/isaac-kiplangat/mpesa-api.git
    cd mpesa-api
    
  2. Install dependencies for both the backend and frontend:

    # Install backend dependencies
    cd server
    npm install
    
    # Install frontend dependencies in another terminal
    cd client
    npm install
  3. Configure your M-Pesa API credentials:

    • Open backend/.env file and provide your M-Pesa API credentials.
  4. Run the application:

    # Run the backend server
    cd server
    npm start
    
    # Run the frontend server in another terminal
    cd client
    npm run dev
  5. Open your browser and navigate to http://localhost:5173 to access the application.

Usage

Backend

  • The backend server exposes API endpoints for initiating M-Pesa transactions. Refer to the API documentation for more details on the available endpoints.

Frontend

  • The frontend provides a simple interface for users to make M-Pesa payments. Customize the frontend as needed to fit your application's design and requirements.

API Documentation

Refer to the API documentation for detailed information on the available endpoints and their usage. The documentation can be found in the docs in daraja api directory.

For refeence check out this video by victor here

License

This project is licensed under the MIT License.

kiswahili-past-papers-mpesa-api's People

Contributors

isaac-kiplangat avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.