Use Create React App and see this guide on how to integrate Pivotal UI.
Pivotal UI Starter is a todoApp project with much of the tooling in place you would need for a fully-featured React application. Click here to see it in action.
Install gulp:
brew install gulp
Checkout the project, install dependencies, and start foreman:
git clone git@github.com:pivotal-cf/pui-starter.git && cd pui-starter
npm install
gulp foreman
This will start up the development server at 3000 and the Jasmine server at 8888. The app includes example React architecture, along with Jasmine unit tests and a WebdriverIO integration test.
To deploy to cloud foundry:
- choose a unique name for your application and change
name: pivotal-ui-starter
inmanifest.yml
to your unique name - login to cf, target your org and space
gulp deploy
Note that cf push
by itself will not work. The gulp deploy
task will compile your assets and configure the staticfile for the buildpack before doing cf push
To deploy to elsewhere, or just to generate a deployable app:
gulp compile
For testing and development, see our developer guide