The Kids First Portal powers the file browser and user profile interfaces using Arranger and Persona services.
Install dependencies and start the development server:
npm i
npm start
Please make sure your code has been formatted using Prettier
For full functionality, the portal needs to interact with many APIs.
All API endpoints may be set inside the environment.
Copy .env.schema
to .env.local
and configure it with appropriate endpoints.
To run webpack bundle analyzer, first generate a prodution build with the associated stats files (build/stats.json
):
NODE_ENV=production NODE_PATH=src ./node_modules/.bin/webpack -p --config config/webpack.config.prod.js --profile --json > build/stats.json
Then launch the webpack-bundle-analyzer consuming that stats file:
./node_modules/.bin/webpack-bundle-analyzer build/stats.json build/
Finally, visit http://127.0.0.1:8888/ to see it in action.
webpack-bundle-analyzer npm page
-
All new development should happen on a supporting branch rather than directly on
next
ormaster
. Supporting branches should be formatted as<type>/##-couple-words
or<type>/very-short-description
, where denotes a change type that is one of the below:- feat (feature)
- bug (bug fix)
- docs (documentation)
- refactor
- test (when adding missing tests)
- chore (maintain)
Once development is complete for the scope defined by the supporting branch, a pull request can be made for the
next
branch for code review.