Pay with Pi #5
Juma-creator
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Pi Platform Demo App: Development Environment
The following document explains how to set up a development environment and run the Pi Platform Demo App in the
sandbox environment.
Prerequisites:
This guides assumes you have the following two tools installed on your development machine:
yarn startNode17
to work around this issue1. Clone the Github repo and navigate to the project directory:
2. Register your app on the developer portal
Open
develop.pi
in the Pi Browser, on your mobile phone, and go through the prerequisite steps(e.g verifying your email address).
Create a new app by clicking the "Register an App" button.
The Process is as follows:
This will bring you to the App Dashboard, from this screen you can continue the development of the demo app.
setup for the demo app frontend, this is "http://localhost:3314/. Note: If you need, you can change the port by specifying it in
frontend/.env
file, as the value of thePORT
environment variable.or simply set it up to an example value (e.g "https://paywithpi.com/"). This must be an HTTPs URL
setup for the Pay with Pi
3. Run the frontend development server
Setup the frontend app following the Pay with Pi App Frontend documentation.
4. Run the backend development server
Setup backend server following the Pay with Pi App Backend documentation.
5. Open the app in the Sandbox
To test all of the Pay with Pi App features, you need to run it in the Pay with Pi Sandbox.
The purpose of the Sandbox is to enable running and debugging a Pay with Pi App in a desktop browser, although a Pay with Pi App
is meant to be opened in the Pi Browser by end-users.
For more information on the Sandbox head to our [Community Developer Guide ] (https://Pay with Pi apps.github.io/community-developer-guide/docs/gettingStarted/pay with pi App Platform/pay with pi App PlatformSDK/#the-sandbox-flag).
Lastly, on your desktop browser open the sandbox URL from Step 6 of App Checklist:
Congratulations! The app should work in the developer portal and enable you to sign in, place an order and make a testnet payment.
More Information - Developing on Pi
For guidelines on how to register an app and get the Sandbox URL, please refer to the
[Pi Developer Guide] (https://://pay with pi-apps.github.io/community-developer-guide/).
This discussion was created from the release Pay with Pi.
Beta Was this translation helpful? Give feedback.
All reactions