Skip to content

A mock payment gateway interface using Django and React (with Django Rest Framework)

License

Notifications You must be signed in to change notification settings

oberoidhruv/django-react-mock-payment-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-react-mock-payment-gateway

This is a Mock Payment Gateway Interface using a Django Backend (with Django Rest Framework) and a React Frontend.

Usage as below:

Installation can be done using the setup.sh (which will also download the repo)

Linux, WSL and Mac:

Some basic instructions on how to install: (with pip3 installed)

  • Copy setup.sh to a directory to host project
  • run "source setup.sh" in a terminal window in the mentioned directory

This will start the Django backend server on 127.0.0.1:8000

Windows:

Note:

After the script runs, you will be required to open a second terminal window to run the React frontend. My approach was to create separate interfaces, running similar to a microservice architecture, communicating over Rest APIs. To run the frontend, from the root of the project directory, type the following in the second terminal window:

  • cd frontend/gui/
  • npm start

You are required to have npm and node.js installed on your local machine.

The frontend server will run on 127.0.0.1:3000

I created some test entries with SuperUser access as an example. The superuser details are as follows:

Username: "user", Password: "potato123"

About

A mock payment gateway interface using Django and React (with Django Rest Framework)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published