In the project directory, you can run:
Runs the app in development mode against eBay sandbox environment.
Runs the app in production mode against eBay production environment.
Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
In the root project directory (same folder as package.json), you'll need to add two .env files:
HTTPS=true
REACT_APP_AUTHORIZE_URL=https://auth.sandbox.ebay.com/oauth2/authorize
REACT_APP_CLIENT_ID=
REACT_APP_CLIENT_SECRET=
REACT_APP_REDIRECT_URI=
REACT_APP_SCOPES=https://api.ebay.com/oauth/api_scope/sell.inventory+https://api.ebay.com/oauth/api_scope/sell.fulfillment
REACT_APP_PROXY_URL=https://api.sandbox.ebay.com
HTTPS=true
REACT_APP_AUTHORIZE_URL=https://auth.ebay.com/oauth2/authorize
REACT_APP_CLIENT_ID=
REACT_APP_CLIENT_SECRET=
REACT_APP_REDIRECT_URI=
REACT_APP_SCOPES=https://api.ebay.com/oauth/api_scope/sell.inventory+https://api.ebay.com/oauth/api_scope/sell.fulfillment
REACT_APP_PROXY_URL=https://api.ebay.com
The .env files tell the code how to interact with eBay. For both .env files, please fill in following fields using the eBay access keys page:
- REACT_APP_CLIENT_ID
- REACT_APP_CLIENT_SECRET
- REACT_APP_REDIRECT_URI (see Configuring Redirect URI below)
This application requires a redirect URI be set in order to tell eBay where to redirect during authorization. To configure, go to eBay user tokens page and do the following:
- Click
Add eBay Redirect URLbutton - Fill in
Your auth accepted URLwithhttps://localhost:3000 - Click
OAuthoption at the bottom - Copy
RuName (eBay Redirect URL name)to applicative.envfiles under the variableREACT_APP_REDIRECT_URI
This process will need to be completed for both sandbox and production.
Please contact @ryanbeaz if you have any questions or run into issues.
