This project is a central hub for BPAS applications. It is uses React Boilerplate as its foundation and Office UI Fabric React for core styling and components.
git clone https://github.com/vollmerr/app-hub.git
cd app-hub
npm install
npm run mock:build
This will only ever have to be done once, unless changes are made to the mock api data format.
Start the mock API
npm run mock:api
It will now be available at http://localhost:3001. If it is the first time running the mock API, see Building test data.
In another terminal, start the application in mock mode
npm run mock
It will now be available at http://localhost:3000
For testing different mock users, select a token from the 'Mock Options' panel in the top right.
npm start
It will now be available at http://localhost:3000
For testing different dev users, select a token from the 'Developers Options' panel in the top right.
To build the project for production
npm run start:production
The propject will be built to the '/build' folder.
To test all files a single time with coverage (cannot update snapshots using this)
npm test
To test only files that have changed
npm run test:watch
To test only files that have changed while running in mock mode
npm run mock:watch
To test only files that have changed while running in dev mode
npm run start:watch
npm run generate app
There are two forms of examples in this repo as follows:
- located in app/containers/Demo*
- ignored in tests/coverage, so no examples of those in there
- run in dev or mock mode to view
- located in app/examples/*
- detailed comments throughout for explanations
- run
npm run start:examples
to start