Table of Contents
The front-end of this application is a React app that’s rendered inside a Django and that fetches required data from the REST API that the back-end exposes.
The source code for the front-end is in the mpesa-app/src/
folder.
React Testing Library is used for testing React components in this project.
Depending on your development environment set up, you might need to install the
npm
packages locally (it can help your editor with autocompletion and
linting):
# From the project root
cd frontend/mpesa-app
npm install
You should now have the packages installed locally to frontend/mpesa-app/node_modules
and you should be able to run npm
scripts locally (not through Docker):
npm run test
npm run lint