Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Build and deploy a React project to the Wolfram Cloud
ResourceFunction["CloudDeployReactProject"][sourceDirectory,endpoint] builds the React project found in sourceDirectory to a CloudObject specified by endpoint. | |
ResourceFunction["CloudDeployReactProject"][sourceDirectory,{targetDirectory,endPoint}] builds the React project found in sourceDirectory to a CloudObject specified by endpoint in the cloud directory targetDirectory. |
Path | Automatic | path on which npm can be found |
"ProgressMessages" | None | whether to print progress messages |
Permissions | $Permissions | the Cloud Permissions for deployed files |
Node.js and npm must be installed for this function to work. See instructions here»
Create a new React app, for example using npx create-react-appmy-react-app then deploy it using:
In[1]:= |
Out[1]= |
A React deployment consists of many files. A directory called React is created to store these, and the endpoint is also placed in this directory. You can also specify the name of this directory:
In[2]:= |
Out[2]= |
This work is licensed under a Creative Commons Attribution 4.0 International License