https://github.com/rhildred/info8985_microfrontend
a sample fastapi micro front end for paypal standard payment
https://github.com/rhildred/info8985_microfrontend
Last synced: 2 months ago
JSON representation
a sample fastapi micro front end for paypal standard payment
- Host: GitHub
- URL: https://github.com/rhildred/info8985_microfrontend
- Owner: rhildred
- Created: 2024-11-15T17:44:55.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-11-15T19:39:43.000Z (5 months ago)
- Last Synced: 2024-12-26T11:14:19.638Z (4 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Paypal Standard demo Microfrontend
### fastapi and vanilla javascript for custom elementTLDR;
1. Sign up for a paypal developer account
2. Create a sandbox app and get your client id and client secret
3. Put client id and client secret in a .env file in the same folder as the README.md file```
PAYPAL_CLIENT_ID=
PAYPAL_CLIENT_SECRET=
```When you have the .env file correct, you can start the app and surf to the provided url and see the markdown file with the code in it.
```bash
pip install -r requirements.txt
fastapi dev app.py
```You can see microfrontend docs by adding markdown files and refering to them in the `index.html`. You can see api docs by surfing to `/docs`. This is my response to Martin Fowler's [excellent article about micro frontends](https://martinfowler.com/articles/micro-frontends.html). You will notice that this article is from 2019. Unfortunately the promise of microfrontends and continuous delivery by autonomous teams still seems a little underdeveloped. I would like to develop it a little more!