The Pocket Money App is a simple web application built with React and Material-UI. It provides a user interface to initiate payments between parents and children.
- Parent Pay page: Allows parents to select the paying parent account, receiving child account, payment type, and amount to initiate a payment.
- Child Account page: Displays the account details and transaction history of the selected child account.
- React
- React Router
- Material-UI
- Prism (for mock API server)
-
Clone the repository: git clone
-
Navigate to the project directory: cd pocket-money-app
-
Install the dependencies: npm install
-
Start the development server: npm start
-
Open the web browser and visit http://localhost:3000.
The Pocket Money App uses a mock API server to simulate the payment functionality. The server is powered by Prism.
To start the mock API server:
-
Install StopLight Prism globally: npm install -g @stoplight/prism-cli
-
Start the Prism server with the provided OAS specification file:
The project structure looks like this:
pocket-money-app/ ├── public/ ├── src/ │ ├── components/ │ │ ├── Header.js │ │ ├── NavBar.js │ │ ├── ParentPay.js │ │ └── ChildAccount.js │ ├── App.js │ └── index.js ├── package.json ├── README.md └── ...
License
This project is licensed under the MIT License.
Contributing
Contributions are welcome! If you have any suggestions, improvements, or bug fixes, please submit a pull request.
Author
- Alan Torrance (https://github.com/torranca)